core: Add new context flag "no-symkey-cache".
authorWerner Koch <wk@gnupg.org>
Thu, 12 Apr 2018 07:17:27 +0000 (09:17 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 12 Apr 2018 07:17:27 +0000 (09:17 +0200)
commitf7700a016926f0d8e9cb3c0337837deb7fe01079
treecd622990455db03ba7b67cd1f1acd192eb38463c
parent5eb261d6028ab2c0ddd9af8e3e1f82e479c6109c
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 <wk@gnupg.org>
NEWS
doc/gpgme.texi
src/context.h
src/engine-gpg.c
src/gpgme.c
tests/run-decrypt.c
tests/run-encrypt.c