diff options
| author | Justus Winter <[email protected]> | 2015-11-30 17:39:00 +0000 |
|---|---|---|
| committer | Justus Winter <[email protected]> | 2015-12-04 11:52:40 +0000 |
| commit | 45c814f348c89acd8d21d0607ffcf68e5c5c399e (patch) | |
| tree | d1a22fe0ab0d9c5181d1b5cbae5b383cbeccdf0d /tools/gpgtar.h | |
| parent | tools/gpgtar: Use the new exectool helper. (diff) | |
| download | gnupg-45c814f348c89acd8d21d0607ffcf68e5c5c399e.tar.gz gnupg-45c814f348c89acd8d21d0607ffcf68e5c5c399e.zip | |
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 <[email protected]>
Diffstat (limited to 'tools/gpgtar.h')
| -rw-r--r-- | tools/gpgtar.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gpgtar.h b/tools/gpgtar.h index eadbcac2a..3f21ea1e8 100644 --- a/tools/gpgtar.h +++ b/tools/gpgtar.h @@ -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); |
