diff options
author | Werner Koch <[email protected]> | 2003-12-01 10:54:09 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2003-12-01 10:54:09 +0000 |
commit | 7134af9fdb194ae8291775fed78cd1a82eaaa41b (patch) | |
tree | 35754ee22cdad633b430f3e2aa89f7a1d9222158 /scd/scdaemon.c | |
parent | (Certificate Options): Add --{enable,disable}-ocsp. (diff) | |
download | gnupg-7134af9fdb194ae8291775fed78cd1a82eaaa41b.tar.gz gnupg-7134af9fdb194ae8291775fed78cd1a82eaaa41b.zip |
* scdaemon.c, scdaemon.h: New options --allow-admin and --deny-admin.
* app-openpgp.c (verify_chv3): Check it here.
Diffstat (limited to 'scd/scdaemon.c')
-rw-r--r-- | scd/scdaemon.c | 9 |
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; } } |