aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-openpgp.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2008-08-18 11:08:04 +0000
committerWerner Koch <[email protected]>2008-08-18 11:08:04 +0000
commit8e896444517d27b5ef20438273e2a20aab29e0f6 (patch)
tree7635b56f3e39d59d7c72c3718116fba0e6c644a7 /scd/app-openpgp.c
parentPrint a 'f' for validated non-root certificates in gpgsm colon style listing. (diff)
downloadgnupg-8e896444517d27b5ef20438273e2a20aab29e0f6.tar.gz
gnupg-8e896444517d27b5ef20438273e2a20aab29e0f6.zip
Fix new test for v2 cards.
Diffstat (limited to 'scd/app-openpgp.c')
-rw-r--r--scd/app-openpgp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index cfc51ce45..553d2fe8c 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -1657,8 +1657,8 @@ do_setattr (app_t app, const char *name,
;
if (!table[idx].name)
return gpg_error (GPG_ERR_INV_NAME);
- if (!table[idx].need_v2)
- return gpg_error (GPG_ERR_NOT_SUPPORTED);
+ if (table[idx].need_v2)
+ return gpg_error (GPG_ERR_NOT_SUPPORTED); /* Not yet supported. */
switch (table[idx].need_chv)
{