From: Harald Welte Date: Sun, 23 Oct 2005 22:28:13 +0000 (+0000) Subject: fix AID of MRTD app X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=b7edc5becac07903dd4d183ba08c064a6d9c64c6;p=librfid fix AID of MRTD app git-svn-id: https://svn.gnumonks.org/trunk/librfid@1561 e0336214-984f-0b4b-a45f-81c69e1f0ede --- 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);