aboutsummaryrefslogtreecommitdiffstats
path: root/src/context.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-10-29 10:59:51 +0000
committerWerner Koch <[email protected]>2024-10-29 11:00:11 +0000
commita304ec0ede937e21df5b4a311cbaf8d89f13ef59 (patch)
tree846889cf9b17748eef4977269a36e060d7e9d1fd /src/context.h
parentcore: Add new helper _gpgme_strtokenize. (diff)
downloadgpgme-a304ec0ede937e21df5b4a311cbaf8d89f13ef59.tar.gz
gpgme-a304ec0ede937e21df5b4a311cbaf8d89f13ef59.zip
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
Diffstat (limited to 'src/context.h')
-rw-r--r--src/context.h4
1 files changed, 4 insertions, 0 deletions
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;