aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2013-03-05 15:35:24 +0200
committerAlon Levy <alevy@redhat.com>2013-04-24 11:47:54 +0300
commita26dfd95d33d650f9f9f93b6ee6f03be925db1a8 (patch)
treea9835de2bc7d69329df1d6f288c87a5e0b830102
parent693e47738d05463b2743b0a652412d33cf254977 (diff)
libcacard: change default ATR
Signed-off-by: Alon Levy <alevy@redhat.com> Reviewed-by: Marc-André Lureau <mlureau@redhat.com>
-rw-r--r--libcacard/vcardt.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/libcacard/vcardt.h b/libcacard/vcardt.h
index 538bdde3df..3b9a6199c0 100644
--- a/libcacard/vcardt.h
+++ b/libcacard/vcardt.h
@@ -26,9 +26,17 @@ typedef struct VCardEmulStruct VCardEmul;
#define MAX_CHANNEL 4
/* create an ATR with appropriate historical bytes */
-#define VCARD_ATR_PREFIX(size) 0x3b, 0x66+(size), 0x00, 0xff, \
- 'V', 'C', 'A', 'R', 'D', '_'
+#define TS_DIRECT_CONVENTION 0x3b
+#define TA_PRESENT 0x10
+#define TB_PRESENT 0x20
+#define TC_PRESENT 0x40
+#define TD_PRESENT 0x80
+#define VCARD_ATR_PREFIX(size) \
+ TS_DIRECT_CONVENTION, \
+ TD_PRESENT + (6 + size), \
+ 0x00, \
+ 'V', 'C', 'A', 'R', 'D', '_'
typedef enum {
VCARD_DONE,