aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-08-23 10:26:02 +0000
committerWerner Koch <[email protected]>2024-08-23 11:35:58 +0000
commit37aa9eee7c5696c7b79898a33f9c2883962c2a88 (patch)
tree82a1e0c8fedd549cb68376752002018ebbad2951 /tests
parentqt,tests: Add make target to clean the keyring (diff)
downloadgpgme-37aa9eee7c5696c7b79898a33f9c2883962c2a88.tar.gz
gpgme-37aa9eee7c5696c7b79898a33f9c2883962c2a88.zip
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
Diffstat (limited to 'tests')
-rw-r--r--tests/run-verify.c10
1 files changed, 10 insertions, 0 deletions
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");