summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2005-10-23 22:28:13 +0000
committerlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2005-10-23 22:28:13 +0000
commit6d7f1185f88ea5c788d0f7b113db8e2b98ca6336 (patch)
treeabcadd12b4ae0a2f41c96d039a3d3777764907c7
parent870fdfd44cc9fe080cd1d45d00975cb0e89ed7b0 (diff)
fix AID of MRTD app
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1561 e0336214-984f-0b4b-a45f-81c69e1f0ede
-rw-r--r--openct-escape.c6
1 files 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);
personal git repositories of Harald Welte. Your mileage may vary