mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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 <justus@g10code.com>
This commit is contained in:
parent
1a045b1324
commit
69a8440f44
6 changed files with 30 additions and 7 deletions
|
@ -303,7 +303,7 @@ gpgtar_extract (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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue