summaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2010-10-08 13:11:08 +0200
committerWerner Koch <wk@gnupg.org>2010-10-08 13:11:08 +0200
commita78335c9ce3956a1e6d6f1a17e60673b3ebce5fb (patch)
tree36bca72ac73e36d6564485685e1245787b39884d /sm/gpgsm.c
parentImport fixes. (diff)
downloadgnupg2-a78335c9ce3956a1e6d6f1a17e60673b3ebce5fb.tar.xz
gnupg2-a78335c9ce3956a1e6d6f1a17e60673b3ebce5fb.zip
Add new option --with-keygrip
Diffstat (limited to 'sm/gpgsm.c')
-rw-r--r--sm/gpgsm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sm/gpgsm.c b/sm/gpgsm.c
index 226704a98..d1b09f422 100644
--- a/sm/gpgsm.c
+++ b/sm/gpgsm.c
@@ -143,6 +143,7 @@ enum cmd_and_opt_values {
oWithFingerprint,
oWithMD5Fingerprint,
+ oWithKeygrip,
oAnswerYes,
oAnswerNo,
oKeyring,
@@ -371,6 +372,7 @@ static ARGPARSE_OPTS opts[] = {
ARGPARSE_s_n (oWithEphemeralKeys, "with-ephemeral-keys", "@"),
ARGPARSE_s_n (oSkipVerify, "skip-verify", "@"),
ARGPARSE_s_n (oWithFingerprint, "with-fingerprint", "@"),
+ ARGPARSE_s_n (oWithKeygrip, "with-keygrip", "@"),
ARGPARSE_s_s (oDisableCipherAlgo, "disable-cipher-algo", "@"),
ARGPARSE_s_s (oDisablePubkeyAlgo, "disable-pubkey-algo", "@"),
ARGPARSE_s_n (oIgnoreTimeConflict, "ignore-time-conflict", "@"),
@@ -1244,6 +1246,10 @@ main ( int argc, char **argv)
opt.fingerprint++;
break;
+ case oWithKeygrip:
+ opt.with_keygrip = 1;
+ break;
+
case oOptions:
/* config files may not be nested (silently ignore them) */
if (!configfp)