aboutsummaryrefslogtreecommitdiff
path: root/libcacard/vcardt.h
diff options
context:
space:
mode:
authorMarc-André Lureau <mlureau@redhat.com>2012-12-02 22:00:55 +0100
committerAlon Levy <alevy@redhat.com>2013-04-24 11:47:31 +0300
commite2fd2115ce26049335d66ae0ae5e5c0ad06fb498 (patch)
tree9a7018ba0edb3144dd85ed5b54bece24e02e0021 /libcacard/vcardt.h
parentbb71623811686ce3c34ce724f073f5c5dd95f51b (diff)
libcacard: correct T0 historical bytes size
The VCARD_ATR_PREFIX macro adds a prefix of 6 characters only. pcsc_scan was complaining before the patch: + Historical bytes: 56 43 41 52 44 5F 4E 53 53 ERROR! ATR is truncated: 2 byte(s) is/are missing Signed-off-by: Marc-André Lureau <mlureau@redhat.com> Reviewed-by: Alon Levy <alevy@redhat.com>
Diffstat (limited to 'libcacard/vcardt.h')
-rw-r--r--libcacard/vcardt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcacard/vcardt.h b/libcacard/vcardt.h
index d3e9522774..538bdde3df 100644
--- a/libcacard/vcardt.h
+++ b/libcacard/vcardt.h
@@ -26,7 +26,7 @@ typedef struct VCardEmulStruct VCardEmul;
#define MAX_CHANNEL 4
/* create an ATR with appropriate historical bytes */
-#define VCARD_ATR_PREFIX(size) 0x3b, 0x68+(size), 0x00, 0xff, \
+#define VCARD_ATR_PREFIX(size) 0x3b, 0x66+(size), 0x00, 0xff, \
'V', 'C', 'A', 'R', 'D', '_'