tools/gpgtar: Handle '--gpg' argument.
authorJustus Winter <justus@g10code.com>
Wed, 25 Nov 2015 13:57:14 +0000 (14:57 +0100)
committerJustus Winter <justus@g10code.com>
Wed, 25 Nov 2015 13:57:14 +0000 (14:57 +0100)
commit89e104eb38c3a6896892ff09db11cb1bae2bb0d3
treed358f3dd64fd3426d4bb4ddd51b6997b7246ca8e
parentf76fb047c15914ba44dc9423d235484758bcd721
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>
tools/gpgtar-create.c
tools/gpgtar-extract.c
tools/gpgtar-list.c
tools/gpgtar.c
tools/gpgtar.h