pySim.apdu.ts_102_221: Decode FETCH and TERMINAL RESPONSE body

This gives a meaningful decode during pySim-trace.

Change-Id: Ifa410e1fefc25e87ffa8e3a2230af80180a36a18
This commit is contained in:
Harald Welte
2024-06-08 18:23:31 +02:00
parent f22637f151
commit 2eea70f6bc
2 changed files with 9 additions and 0 deletions

View File

@@ -464,10 +464,12 @@ class Envelope(ApduCommand, n='ENVELOPE', ins=0xC2, cla=['80']):
# TS 102 221 Section 11.2.3 / TS 102 223
class Fetch(ApduCommand, n='FETCH', ins=0x12, cla=['80']):
_apdu_case = 2
_tlv_rsp = cat.ProactiveCommand
# TS 102 221 Section 11.2.3 / TS 102 223
class TerminalResponse(ApduCommand, n='TERMINAL RESPONSE', ins=0x14, cla=['80']):
_apdu_case = 3
_tlv = cat.TerminalResponse
# TS 102 221 Section 11.3.1
class RetrieveData(ApduCommand, n='RETRIEVE DATA', ins=0xCB, cla=['8X', 'CX', 'EX']):