diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2012-12-02 22:00:55 +0100 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2013-03-05 18:13:20 +0200 |
commit | 9764fc0c8c0d81d98193c3180ab01a772a5f16b3 (patch) | |
tree | 6dee3d638584db7a4c0b82d36f75a898dae27e1b | |
parent | bbb7720f1f858ceead3fb0fa1acfa7dfa491ef08 (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
-rw-r--r-- | libcacard/vcardt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcacard/vcardt.h b/libcacard/vcardt.h index d3e952277..538bdde3d 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', '_' |