mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
tools/gpgtar: Implement signing.
* tests/openpgp/gpgtar.test: Test signing. * tools/gpgtar-create.c (gpgtar_create): Add 'sign' option, add the appropriate gpg arguments to implement signing and selecting the local user. * tools/gpgtar.c (parse_options): We do handle '--local-user' now. (main): Handle signing, encrypting, and doing both when creating an archive. * tools/gpgtar.h (gpgtar_create): Update prototype. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
0c0dafd8e8
commit
45c814f348
4 changed files with 60 additions and 18 deletions
|
@ -119,7 +119,7 @@ gpg_error_t read_record (estream_t stream, void *record);
|
|||
gpg_error_t write_record (estream_t stream, const void *record);
|
||||
|
||||
/*-- gpgtar-create.c --*/
|
||||
gpg_error_t gpgtar_create (char **inpattern, int encrypt);
|
||||
gpg_error_t gpgtar_create (char **inpattern, int encrypt, int sign);
|
||||
|
||||
/*-- gpgtar-extract.c --*/
|
||||
gpg_error_t gpgtar_extract (const char *filename, int decrypt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue