summaryrefslogtreecommitdiffstats
path: root/scd/scdaemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'scd/scdaemon.c')
-rw-r--r--scd/scdaemon.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/scd/scdaemon.c b/scd/scdaemon.c
index 89be04ab5..a3100988b 100644
--- a/scd/scdaemon.c
+++ b/scd/scdaemon.c
@@ -73,6 +73,8 @@ enum cmd_and_opt_values
opcscDriver,
oDisableCCID,
oDisableOpenSC,
+ oAllowAdmin,
+ oDenyAdmin,
aTest };
@@ -112,8 +114,8 @@ static ARGPARSE_OPTS opts[] = {
"@"
#endif
/* end --disable-opensc */},
-
-
+ { oAllowAdmin, "allow-admin", 0, N_("allow the use of admin card commands")},
+ { oDenyAdmin, "deny-admin", 0, "@" },
{0}
};
@@ -397,6 +399,9 @@ main (int argc, char **argv )
case oDisableCCID: opt.disable_ccid = 1; break;
case oDisableOpenSC: opt.disable_opensc = 1; break;
+ case oAllowAdmin: opt.allow_admin = 1; break;
+ case oDenyAdmin: opt.allow_admin = 0; break;
+
default : pargs.err = configfp? 1:2; break;
}
}