aboutsummaryrefslogtreecommitdiffstats
path: root/src/context.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-04-12 07:17:27 +0000
committerWerner Koch <[email protected]>2018-04-12 07:17:27 +0000
commitf7700a016926f0d8e9cb3c0337837deb7fe01079 (patch)
treecd622990455db03ba7b67cd1f1acd192eb38463c /src/context.h
parentqt: Add test for resetting config value (diff)
downloadgpgme-f7700a016926f0d8e9cb3c0337837deb7fe01079.tar.gz
gpgme-f7700a016926f0d8e9cb3c0337837deb7fe01079.zip
core: Add new context flag "no-symkey-cache".
* src/gpgme.c (gpgme_set_ctx_flag): Set flag. (gpgme_get_ctx_flag): Get flag. * src/context.h (struct gpgme_context): Add field no_symkey_cache. * src/engine-gpg.c (struct engine_gpg): Ditto. (gpg_set_engine_flags): Set flag. (build_argv): Pass option --no-symkey-cache to gpg. * tests/run-decrypt.c (print_result): Fix segv for symmetric messages. (main): New option --no-symkey-cache. * tests/run-encrypt.c (main): New option --no-symkey-cache. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'src/context.h')
-rw-r--r--src/context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/context.h b/src/context.h
index 202cf168..c8e75ba0 100644
--- a/src/context.h
+++ b/src/context.h
@@ -121,6 +121,9 @@ struct gpgme_context
/* True if the option --auto-key-retrieve shall be passed to gpg. */
unsigned int auto_key_retrieve : 1;
+ /* Do not use the symmtric encryption passphrase cache. */
+ unsigned int no_symkey_cache : 1;
+
/* Flags for keylist mode. */
gpgme_keylist_mode_t keylist_mode;