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 --- tests/run-verify.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests') diff --git a/tests/run-verify.c b/tests/run-verify.c index 9f32fce9..2d53ad19 100644 --- a/tests/run-verify.c +++ b/tests/run-verify.c @@ -241,6 +241,7 @@ show_usage (int ex) " --directory DIR extract the files into the directory DIR\n" " --diagnostics print diagnostics\n" " --direct-file-io pass file names instead of streams with content of files to backend\n" + " --proc-all-sigs pass this option to gpg\n" , stderr); exit (ex); } @@ -262,6 +263,7 @@ main (int argc, char **argv) gpgme_data_encoding_t encoding = GPGME_DATA_ENCODING_NONE; int diagnostics = 0; int direct_file_io = 0; + int proc_all_sigs = 0; int repeats = 1; int i; @@ -360,6 +362,11 @@ main (int argc, char **argv) direct_file_io = 1; argc--; argv++; } + else if (!strcmp (*argv, "--proc-all-sigs")) + { + proc_all_sigs = 1; + argc--; argv++; + } else if (!strncmp (*argv, "--", 2)) show_usage (1); @@ -419,6 +426,9 @@ main (int argc, char **argv) } /* gpgme_set_ctx_flag (ctx, "raw-description", "1"); */ + if (proc_all_sigs) + gpgme_set_ctx_flag (ctx, "proc-all-sigs", "1"); + if (auto_key_retrieve) { gpgme_set_ctx_flag (ctx, "auto-key-retrieve", "1"); -- cgit v1.2.3