mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
tools/gpgtar: Handle '--gpg' argument.
* tools/gpgtar-create.c (gpgtar_create): Use given gpg program. * tools/gpgtar-extract.c (gpgtar_extract): Likewise. * tools/gpgtar-list.c (gpgtar_list): Likewise. * tools/gpgtar.c (enum cmd_and_opt_values): New constant. (opts): Add argument. (main): Handle argument. * tools/gpgtar.h (opt): Add field 'gpg_program'. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
f76fb047c1
commit
89e104eb38
5 changed files with 11 additions and 3 deletions
|
@ -892,7 +892,8 @@ gpgtar_create (char **inpattern, int encrypt)
|
|||
if (err)
|
||||
goto leave;
|
||||
|
||||
err = gpg_encrypt_stream (NULL, NULL,
|
||||
err = gpg_encrypt_stream (NULL,
|
||||
opt.gpg_program,
|
||||
outstream,
|
||||
opt.recipients,
|
||||
cipher_stream);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue