aboutsummaryrefslogtreecommitdiffstats
path: root/tests/run-sign.c
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2022-06-14 08:10:57 +0000
committerIngo Klöcker <[email protected]>2022-06-14 08:10:57 +0000
commitd59cf1725755f24e79a0ce12ddc59fedc97292c6 (patch)
tree516fec06621836ea5cccd67bb7588b2ac30dafd6 /tests/run-sign.c
parentqt,tests: Allow 1-day-offset for expiration date (diff)
downloadgpgme-d59cf1725755f24e79a0ce12ddc59fedc97292c6.tar.gz
gpgme-d59cf1725755f24e79a0ce12ddc59fedc97292c6.zip
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
Diffstat (limited to 'tests/run-sign.c')
-rw-r--r--tests/run-sign.c6
1 files changed, 6 insertions, 0 deletions
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);