From a304ec0ede937e21df5b4a311cbaf8d89f13ef59 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 29 Oct 2024 11:59:51 +0100 Subject: core: New context flags "known-notations". * src/gpgme.c (gpgme_set_ctx_flag): Add "known-notations". (gpgme_get_ctx_flag): Ditto. (gpgme_release): Free variable. * src/context.h (struct gpgme_context): Add "known_notations". * src/engine-gpg.c (struct engine_gpg): Add "known_notations". (gpg_release): Free variable. (gpg_set_engine_flags): Set variable. (add_known_notations): New. (gpg_decrypt, gpg_verify): Call function. * tests/run-decrypt.c (main): Add option --known-notations. * tests/run-verify.c (main): Ditto. -- GnuPG-bug-id: 4060 --- src/context.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/context.h') diff --git a/src/context.h b/src/context.h index 9cfd8653..ba9b83ef 100644 --- a/src/context.h +++ b/src/context.h @@ -192,6 +192,10 @@ struct gpgme_context /* The optional import options. */ char *import_options; + /* A comma or space delimited list to create gpg --known-notations + * options. */ + char *known_notations; + /* The operation data hooked into the context. */ ctx_op_data_t op_data; -- cgit v1.2.3