libcacard: change default ATR
Signed-off-by: Alon Levy <alevy@redhat.com> Reviewed-by: Marc-André Lureau <mlureau@redhat.com>
This commit is contained in:
parent
693e47738d
commit
a26dfd95d3
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user