core: Do not leak the override session key to ps(1).
authorWerner Koch <wk@gnupg.org>
Wed, 16 Nov 2016 09:12:19 +0000 (10:12 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 16 Nov 2016 09:15:31 +0000 (10:15 +0100)
commit9fc92a15bd0a30437a39d0eb28b6f40edc22e6e8
tree74981725e9d4761ca6cb9c497e5af2241e0ae2e9
parent573064742145aa5f9bf04baa88af918c0c4d5e12
core: Do not leak the override session key to ps(1).

* src/engine-gpg.c (struct engine_gpg): New field
override_session_key.
(gpg_release): Free that field.
(gpg_decrypt): With gnupg 2.1.16 use --override-session-key-fd.

* tests/run-decrypt.c (main): Fix setting over the override key.
--

Note that this works only with gnupg 2.1.16 and later.

Signed-off-by: Werner Koch <wk@gnupg.org>
doc/gpgme.texi
src/engine-gpg.c
tests/run-decrypt.c