summaryrefslogtreecommitdiffstats
path: root/scd
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2008-08-18 13:08:04 +0200
committerWerner Koch <wk@gnupg.org>2008-08-18 13:08:04 +0200
commit8e896444517d27b5ef20438273e2a20aab29e0f6 (patch)
tree7635b56f3e39d59d7c72c3718116fba0e6c644a7 /scd
parentPrint a 'f' for validated non-root certificates in gpgsm colon style listing. (diff)
downloadgnupg2-8e896444517d27b5ef20438273e2a20aab29e0f6.tar.xz
gnupg2-8e896444517d27b5ef20438273e2a20aab29e0f6.zip
Fix new test for v2 cards.
Diffstat (limited to 'scd')
-rw-r--r--scd/ChangeLog4
-rw-r--r--scd/app-openpgp.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/scd/ChangeLog b/scd/ChangeLog
index 5e53fb9d1..1c453e826 100644
--- a/scd/ChangeLog
+++ b/scd/ChangeLog
@@ -1,3 +1,7 @@
+2008-08-18 Werner Koch <wk@g10code.com>
+
+ * app-openpgp.c (do_setattr): Fix test for v2 cards.
+
2008-08-11 Werner Koch <wk@g10code.com>
* apdu.c (reset_pcsc_reader, open_pcsc_reader)
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)
{