Home GnuPG
Diffusion GPGME 9fc92a15bd0a

core: Do not leak the override session key to ps(1).
9fc92a15bd0aUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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>

Details

Provenance
wernerAuthored on Nov 16 2016, 10:12 AM
Parents
rM573064742145: doc,tests: Require use of ctx_flag before use of session_key.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rM9fc92a15bd0a: core: Do not leak the override session key to ps(1). (authored by Werner Koch <wk@gnupg.org>).Nov 16 2016, 10:15 AM