From d59cf1725755f24e79a0ce12ddc59fedc97292c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Tue, 14 Jun 2022 10:10:57 +0200 Subject: [PATCH] tests: Add support for clear text signatures to test runner * tests/run-sign.c (show_usage): Add new argument "--clear". (main): Handle new argument "--clear". -- GnuPG-bug-id: 6028 --- tests/run-sign.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/run-sign.c b/tests/run-sign.c index 55b2e482..37211d72 100644 --- a/tests/run-sign.c +++ b/tests/run-sign.c @@ -86,6 +86,7 @@ show_usage (int ex) " --key NAME use key NAME for signing\n" " --sender MBOX use MBOX as sender address\n" " --include-key-block use this option with gpg\n" + " --clear create a clear text signature\n" , stderr); exit (ex); } @@ -172,6 +173,11 @@ main (int argc, char **argv) include_key_block = 1; argc--; argv++; } + else if (!strcmp (*argv, "--clear")) + { + sigmode = GPGME_SIG_MODE_CLEAR; + argc--; argv++; + } else if (!strncmp (*argv, "--", 2)) show_usage (1);