aboutsummaryrefslogtreecommitdiffstats
path: root/g10/g10.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/g10.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/g10/g10.c b/g10/g10.c
index 626ee8786..a0e698c53 100644
--- a/g10/g10.c
+++ b/g10/g10.c
@@ -347,6 +347,7 @@ enum cmd_and_opt_values
oMultifile,
oKeyidFormat,
oNoInteractiveSelection,
+ oLimitCardInsertTries,
oReaderPort,
octapiDriver,
@@ -677,6 +678,7 @@ static ARGPARSE_OPTS opts[] = {
{ oMultifile, "multifile", 0, "@" },
{ oKeyidFormat, "keyid-format", 2, "@" },
{ oNoInteractiveSelection, "no-interactive-selection", 0, "@" },
+ { oLimitCardInsertTries, "limit-card-insert-tries", 1, "@"},
{ oReaderPort, "reader-port", 2, "@"},
{ octapiDriver, "ctapi-driver", 2, "@"},
@@ -1583,7 +1585,7 @@ parse_trust_model(const char *model)
}
int
-main( int argc, char **argv )
+main (int argc, char **argv )
{
ARGPARSE_ARGS pargs;
IOBUF a;
@@ -2546,6 +2548,11 @@ main( int argc, char **argv )
case oNoInteractiveSelection:
opt.no_interactive_selection = 1;
break;
+
+ case oLimitCardInsertTries:
+ opt.limit_card_insert_tries = pargs.r.ret_int;
+ break;
+
case oNoop: break;