39 lines
1.2 KiB
Diff
39 lines
1.2 KiB
Diff
|
From ec22a81dc76492a729695a54e32a837ab6384e65 Mon Sep 17 00:00:00 2001
|
||
|
From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <mlureau@redhat.com>
|
||
|
Date: Sun, 2 Dec 2012 22:00:55 +0100
|
||
|
Subject: [PATCH 212/241] libcacard: correct T0 historical bytes size
|
||
|
MIME-Version: 1.0
|
||
|
Content-Type: text/plain; charset=UTF-8
|
||
|
Content-Transfer-Encoding: 8bit
|
||
|
|
||
|
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>
|
||
|
(cherry picked from commit e2fd2115ce26049335d66ae0ae5e5c0ad06fb498)
|
||
|
---
|
||
|
libcacard/vcardt.h | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/libcacard/vcardt.h b/libcacard/vcardt.h
|
||
|
index d3e9522..538bdde 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', '_'
|
||
|
|
||
|
|
||
|
--
|
||
|
1.8.3.1
|
||
|
|