summaryrefslogtreecommitdiffstats
path: root/g10/t-stutter.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2023-04-05 21:32:23 +0200
committerWerner Koch <wk@gnupg.org>2023-04-05 21:32:23 +0200
commitc9e95b8dee05b9a837419fdef9a98f0b3e9671ed (patch)
treec8f574986ea2a49707e5c29e7102bbd88c9478f3 /g10/t-stutter.c
parentspeedo,w32: Remove removed profiles and temporary disable runonce. (diff)
downloadgnupg2-c9e95b8dee05b9a837419fdef9a98f0b3e9671ed.tar.xz
gnupg2-c9e95b8dee05b9a837419fdef9a98f0b3e9671ed.zip
gpg: New option --assert-signer.
* g10/gpg.c (enum cmd_and_opt_values): Add oAssertSigner. (opts): Add "assert-signer". (main): Set option. (assert_signer_true): New var. (g10_exit): Evaluate new var. * g10/main.h (assert_signer_true): Declare new var. * common/status.h (STATUS_ASSERT_SIGNER): New. * g10/options.h (opt): Add field assert_signer_list. * g10/verify.c (is_fingerprint): New. (check_assert_signer_list): New. * g10/mainproc.c (check_sig_and_print): Call that function. Clear assert_signer_true on a warning. * g10/gpgv.c: Add dummy function and vars. * g10/t-keydb-get-keyblock.c: Ditto. * g10/t-keydb.c: Ditto. * g10/t-stutter.c: Ditto. --
Diffstat (limited to 'g10/t-stutter.c')
-rw-r--r--g10/t-stutter.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/g10/t-stutter.c b/g10/t-stutter.c
index 503a92004..7b2ea4b37 100644
--- a/g10/t-stutter.c
+++ b/g10/t-stutter.c
@@ -611,3 +611,12 @@ do_test (int argc, char *argv[])
xfree (filename);
}
+
+int assert_signer_true = 0;
+
+void
+check_assert_signer_list (const char *mainpkhex, const char *pkhex)
+{
+ (void)mainpkhex;
+ (void)pkhex;
+}