mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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>
This commit is contained in:
parent
2eb3248058
commit
1a045b1324
9 changed files with 73 additions and 26 deletions
|
@ -30,6 +30,7 @@
|
|||
#include "../common/util.h"
|
||||
#include "../common/status.h"
|
||||
#include "../common/session-env.h"
|
||||
#include "../common/strlist.h"
|
||||
|
||||
|
||||
/* Debug values and macros. */
|
||||
|
@ -65,6 +66,9 @@ struct
|
|||
filename. */
|
||||
const char *gpg_program;
|
||||
|
||||
/* GPG arguments. XXX: Currently it is not possible to set them. */
|
||||
strlist_t gpg_arguments;
|
||||
|
||||
/* Environment variables passed along to the engine. */
|
||||
char *display;
|
||||
char *ttyname;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue