fix AID of MRTD app
authorHarald Welte <laforge@gnumonks.org>
Sun, 23 Oct 2005 22:28:13 +0000 (22:28 +0000)
committerHarald Welte <laforge@gnumonks.org>
Sun, 23 Oct 2005 22:28:13 +0000 (22:28 +0000)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1561 e0336214-984f-0b4b-a45f-81c69e1f0ede

openct-escape.c

index 92a8f94..c180fed 100644 (file)
@@ -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);