diff options
author | Justus Winter <[email protected]> | 2015-11-25 13:57:14 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2015-11-25 13:57:14 +0000 |
commit | 89e104eb38c3a6896892ff09db11cb1bae2bb0d3 (patch) | |
tree | d358f3dd64fd3426d4bb4ddd51b6997b7246ca8e /tools/gpgtar-create.c | |
parent | tools/gpgtar: Improve error handling. (diff) | |
download | gnupg-89e104eb38c3a6896892ff09db11cb1bae2bb0d3.tar.gz gnupg-89e104eb38c3a6896892ff09db11cb1bae2bb0d3.zip |
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 <[email protected]>
Diffstat (limited to 'tools/gpgtar-create.c')
-rw-r--r-- | tools/gpgtar-create.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gpgtar-create.c b/tools/gpgtar-create.c index 69ba4408f..92c1fb8f6 100644 --- a/tools/gpgtar-create.c +++ b/tools/gpgtar-create.c @@ -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); |