tools/gpgtar: Handle '--gpg-args'.
authorJustus Winter <justus@g10code.com>
Thu, 26 Nov 2015 14:36:52 +0000 (15:36 +0100)
committerJustus Winter <justus@g10code.com>
Thu, 26 Nov 2015 14:36:52 +0000 (15:36 +0100)
commit69a8440f44fa025e33a4cc32d17695c9ac385043
tree9197a5c28bedac413fde5b1da44f36d50b411e97
parent1a045b1324efabe7423a8d00245f01718ed72556
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>
tests/openpgp/gpgtar.test
tools/gpgtar-create.c
tools/gpgtar-extract.c
tools/gpgtar-list.c
tools/gpgtar.c
tools/gpgtar.h