7659d42468
* src/gpgme.c (gpgme_set_ctx_flag): Add flags "export-session-key" and "override-session-key". (gpgme_get_ctx_flag): Ditto. (gpgme_set_export_session_keys): Remove. (gpgme_get_export_session_keys): Remove. * src/gpgme.def, src/libgpgme.vers: Remove them. * src/context.h (struct gpgme_context): Add field override_session_key. * src/decrypt-verify.c (decrypt_verify_start): Pass override_session_key value to the engine. * src/decrypt.c (decrypt_start): Ditto. * src/engine.c (_gpgme_engine_op_decrypt): Ditto. (_gpgme_engine_op_decrypt_verify): Ditto. * src/engine-backend.h (struct engine_ops): Extend DECRYPT and DECRYPT_VERIFY_START with override_session_key. * src/engine-uiserver.c (_uiserver_decrypt): Add stub arg override_session_key. (uiserver_decrypt): Ditto. (uiserver_decrypt_verify): Ditto. * src/engine-gpgsm.c (gpgsm_decrypt): Ditto. * src/engine-gpg.c (gpg_decrypt): Add arg override_session_key and set corresponding gpg option. * tests/run-decrypt.c (print_result): Print the session key if available. (main): Add options --export-session-key and --override-session-key. -- To keep the number of context manipulation functions at bay, this patches removes the just added gpgme_set_export_session_keys and gpgme_get_export_session_keys by flags for the generic context function. The patch also implements the --override-session-key feature. GnuPG-bug-id: 2754 Signed-off-by: Werner Koch <wk@gnupg.org> |
||
---|---|---|
.. | ||
gpg | ||
gpgsm | ||
opassuan | ||
.gitignore | ||
ChangeLog-2011 | ||
Makefile.am | ||
run-decrypt.c | ||
run-encrypt.c | ||
run-export.c | ||
run-genkey.c | ||
run-identify.c | ||
run-import.c | ||
run-keylist.c | ||
run-keysign.c | ||
run-sign.c | ||
run-support.h | ||
run-swdb.c | ||
run-tofu.c | ||
run-verify.c | ||
start-stop-agent | ||
t-data-1.txt | ||
t-data-2.txt | ||
t-data.c | ||
t-engine-info.c | ||
t-version.c |