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"
|
" --key NAME use key NAME for signing\n"
|
||||||
" --sender MBOX use MBOX as sender address\n"
|
" --sender MBOX use MBOX as sender address\n"
|
||||||
" --include-key-block use this option with gpg\n"
|
" --include-key-block use this option with gpg\n"
|
||||||
|
" --clear create a clear text signature\n"
|
||||||
, stderr);
|
, stderr);
|
||||||
exit (ex);
|
exit (ex);
|
||||||
}
|
}
|
||||||
@ -172,6 +173,11 @@ main (int argc, char **argv)
|
|||||||
include_key_block = 1;
|
include_key_block = 1;
|
||||||
argc--; argv++;
|
argc--; argv++;
|
||||||
}
|
}
|
||||||
|
else if (!strcmp (*argv, "--clear"))
|
||||||
|
{
|
||||||
|
sigmode = GPGME_SIG_MODE_CLEAR;
|
||||||
|
argc--; argv++;
|
||||||
|
}
|
||||||
else if (!strncmp (*argv, "--", 2))
|
else if (!strncmp (*argv, "--", 2))
|
||||||
show_usage (1);
|
show_usage (1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user