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
This commit is contained in:
parent
fd813f5c39
commit
d59cf17257
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user