diff options
author | Harald Welte <laforge@osmocom.org> | 2024-01-27 21:31:39 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2024-01-27 21:47:13 +0100 |
commit | 9b1a9d9b2ebaa4038a49f7b60302becf74a100ce (patch) | |
tree | 5a6b8294efa8fcb838e9e2c3c2a0f24b41ad176e | |
parent | 5e0439f881a8f94671742181dea8012a33f6c1d1 (diff) |
ara_m: Use GlobalPlatform SELECT decoding
As the ARA-M applet is a GlobalPlatform applet, its SELECT response
decoding should be used, not the ETSI EUICC TS 102 221 fall-back.
Change-Id: I1a30b88a385f6de663aa837483dd32c0d104856f
-rw-r--r-- | pySim/ara_m.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pySim/ara_m.py b/pySim/ara_m.py index f05109b..a2eaa33 100644 --- a/pySim/ara_m.py +++ b/pySim/ara_m.py @@ -31,6 +31,7 @@ from construct import Optional as COptional from pySim.construct import * from pySim.filesystem import * from pySim.tlv import * +import pySim.global_platform # various BER-TLV encoded Data Objects (DOs) @@ -259,6 +260,9 @@ class ADF_ARAM(CardADF): files = [] self.add_files(files) + def decode_select_response(self, data_hex): + return pySim.global_platform.decode_select_response(data_hex) + @staticmethod def xceive_apdu_tlv(tp, hdr: Hexstr, cmd_do, resp_cls, exp_sw='9000'): """Transceive an APDU with the card, transparently encoding the command data from TLV |