From 37aa9eee7c5696c7b79898a33f9c2883962c2a88 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 23 Aug 2024 12:26:02 +0200 Subject: New context flag "proc-all-sigs". * src/context.h (struct gpgme_context): Add proc_all_sigs. * src/gpgme.c (gpgme_set_ctx_flag): Add flag "proc-all-sigs". (gpgme_get_ctx_flag): Ditto. * src/engine-gpg.c (engine.gpg): Add flags.proc_all_sigs. (have_option_proc_all_sigs): New. (gpg_set_engine_flags): Set flag from context. (build_argv): Add --proc-all-sigs if requested and supported. -- GnuPG-bug-id: 7261 --- src/gpgme.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gpgme.c') diff --git a/src/gpgme.c b/src/gpgme.c index f6d7f38d..086e680b 100644 --- a/src/gpgme.c +++ b/src/gpgme.c @@ -619,6 +619,10 @@ gpgme_set_ctx_flag (gpgme_ctx_t ctx, const char *name, const char *value) { ctx->no_auto_check_trustdb = abool; } + else if (!strcmp (name, "proc-all-sigs")) + { + ctx->proc_all_sigs = abool; + } else err = gpg_error (GPG_ERR_UNKNOWN_NAME); @@ -708,6 +712,10 @@ gpgme_get_ctx_flag (gpgme_ctx_t ctx, const char *name) { return ctx->no_auto_check_trustdb? "1":""; } + else if (!strcmp (name, "proc-all-sigs")) + { + return ctx->proc_all_sigs? "1":""; + } else return NULL; } -- cgit v1.2.3