diff options
author | Kévin Redon <kredon@sysmocom.de> | 2019-05-15 00:23:21 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2019-12-02 19:38:45 +0100 |
commit | 503e184157c1d5e16ac4fe0d29c37d87b5adfc46 (patch) | |
tree | 74cf30d6b99d61f40c603b0bdd0ac0c3790c78d9 /firmware | |
parent | 24c6fe21ab207b9d0aaaf21063e06816ef65bb13 (diff) |
cardem: use simplest ATR as default 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
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/libcommon/source/card_emu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/libcommon/source/card_emu.c b/firmware/libcommon/source/card_emu.c index 497b963..923226a 100644 --- a/firmware/libcommon/source/card_emu.c +++ b/firmware/libcommon/source/card_emu.c @@ -1151,8 +1151,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]; |