common: Make the GPG arguments configurable in call-gpg.
authorJustus Winter <justus@g10code.com>
Thu, 26 Nov 2015 14:01:40 +0000 (15:01 +0100)
committerJustus Winter <justus@g10code.com>
Thu, 26 Nov 2015 14:01:40 +0000 (15:01 +0100)
commit1a045b1324efabe7423a8d00245f01718ed72556
treedff462aee1851881a41b27ee679dbb42f19082ce
parent2eb3248058330dd5c37560d9887db5b5266c54fe
common: Make the GPG arguments configurable in call-gpg.

* common/call-gpg.c (start_gpg): Add parameter 'gpg_arguments'.
(_gpg_encrypt, gpg_encrypt_blob, gpg_encrypt_stream): Likewise.
(_gpg_decrypt, gpg_decrypt_blob, gpg_decrypt_stream): Likewise.
* common/call-gpg.h: Adapt prototypes.
* g13/create.c (encrypt_keyblob): Adapt callsite.
* g13/g13-common.h (opt): Add field 'gpg_arguments'.
* g13/g13.c (main): Construct default arguments.
* g13/mount.c (decrypt_keyblob): Adapt callsite.
* tools/gpgtar-create.c (gpgtar_create): Likewise.
* tools/gpgtar-extract.c (gpgtar_extract): Likewise.
* tools/gpgtar-list.c (gpgtar_list): Likewise.

Signed-off-by: Justus Winter <justus@g10code.com>
common/call-gpg.c
common/call-gpg.h
g13/create.c
g13/g13-common.h
g13/g13.c
g13/mount.c
tools/gpgtar-create.c
tools/gpgtar-extract.c
tools/gpgtar-list.c