aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-openpgp.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--scd/app-openpgp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index 07abf9bfb..6b4a2f7ef 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -569,6 +569,12 @@ verify_chv3 (APP app,
{
int rc = 0;
+ if (!opt.allow_admin)
+ {
+ log_info ("access to admin commands is not configured\n");
+ return gpg_error (GPG_ERR_EACCES);
+ }
+
if (!app->did_chv3)
{
char *pinvalue;