diff options
author | Justus Winter <[email protected]> | 2015-11-26 14:36:52 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2015-11-26 14:36:52 +0000 |
commit | 69a8440f44fa025e33a4cc32d17695c9ac385043 (patch) | |
tree | 9197a5c28bedac413fde5b1da44f36d50b411e97 /tools/gpgtar-list.c | |
parent | common: Make the GPG arguments configurable in call-gpg. (diff) | |
download | gnupg-69a8440f44fa025e33a4cc32d17695c9ac385043.tar.gz gnupg-69a8440f44fa025e33a4cc32d17695c9ac385043.zip |
tools/gpgtar: Handle '--gpg-args'.
* tools/gpgtar-create.c (gpgtar_create): Use given arguments.
* tools/gpgtar-extract.c (gpgtar_extract): Likewise.
* tools/gpgtar-list.c (gpgtar_list): Likewise.
* tools/gpgtar.c (enum cmd_and_opt_values): New value.
(opts): Add 'gpg-args'.
(parse_arguments): Handle arguments.
* tools/gpgtar.h (opt): Add field 'gpg_arguments'.
* tests/openpgp/gpgtar.test: Simplify accordingly.
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'tools/gpgtar-list.c')
-rw-r--r-- | tools/gpgtar-list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gpgtar-list.c b/tools/gpgtar-list.c index 1eab7e574..cb2ca5dac 100644 --- a/tools/gpgtar-list.c +++ b/tools/gpgtar-list.c @@ -306,7 +306,7 @@ gpgtar_list (const char *filename, int decrypt) err = gpg_error_from_syserror (); goto leave; } - err = gpg_decrypt_stream (NULL, opt.gpg_program, NULL, + err = gpg_decrypt_stream (NULL, opt.gpg_program, opt.gpg_arguments, cipher_stream, stream); if (err) goto leave; |