From 6d7f1185f88ea5c788d0f7b113db8e2b98ca6336 Mon Sep 17 00:00:00 2001 From: laforge Date: Sun, 23 Oct 2005 22:28:13 +0000 Subject: fix AID of MRTD app git-svn-id: https://svn.gnumonks.org/trunk/librfid@1561 e0336214-984f-0b4b-a45f-81c69e1f0ede --- openct-escape.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openct-escape.c b/openct-escape.c index 92a8f94..c180fed 100644 --- a/openct-escape.c +++ b/openct-escape.c @@ -92,8 +92,8 @@ static int init() sleep(2); printf("opening layer2 handle\n"); - l2h = rfid_layer2_init(rh, RFID_LAYER2_ISO14443A); - //l2h = rfid_layer2_init(rh, RFID_LAYER2_ISO14443B); + //l2h = rfid_layer2_init(rh, RFID_LAYER2_ISO14443A); + l2h = rfid_layer2_init(rh, RFID_LAYER2_ISO14443B); if (!l2h) { fprintf(stderr, "error during iso14443a_init\n"); return -1; @@ -170,7 +170,7 @@ int iso7816_select_application(void) { char cmd[] = { 0x00, 0xa4, 0x04, 0x0c, 0x07, - 0x0a, 0x00, 0x00, 0x02, 0x47, 0x10, 0x01 }; + 0xa0, 0x00, 0x00, 0x02, 0x47, 0x10, 0x01 }; char resp[7]; unsigned int rlen = sizeof(resp); -- cgit v1.2.3