aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKévin Redon <kredon@sysmocom.de>2019-05-15 00:23:21 +0200
committerKévin Redon <kredon@sysmocom.de>2019-05-15 00:23:31 +0200
commit1a88fd806689cae8eff4aa61c98777c57467c131 (patch)
treec7f93b1b6d2ed3a55291a5408ad32d83dabb8b28
parent73d4d49b83cc810309b800a15dbc7023eee59b08 (diff)
use simplest ATR
this is the shortest and simplest ATR possible according to the ISO 7816-3 spec. it does not offer any non-default parameters (F, D, WI, ...) Change-Id: I4ff41b5120bcadca652296f9d3691f7606be2bd2
-rw-r--r--firmware/libcommon/source/card_emu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/libcommon/source/card_emu.c b/firmware/libcommon/source/card_emu.c
index b7d0e1f..ab154b4 100644
--- a/firmware/libcommon/source/card_emu.c
+++ b/firmware/libcommon/source/card_emu.c
@@ -1121,8 +1121,8 @@ void tc_etu_wtime_expired(void *handle)
}
}
-/* shortest ATR found in smartcard_list.txt */
-static const uint8_t default_atr[] = { 0x3B, 0x02, 0x14, 0x50 };
+/* shortest ATR possible (uses default speed and no options) */
+static const uint8_t default_atr[] = { 0x3B, 0x00 };
static struct card_handle card_handles[NUM_SLOTS];