pySim/commands: STATUS: Use indeterminate length Le/P3 == '00'

Let's have the card tell us what the length is by indicating '00'
instead of stating 'FF'.  This is better aligned with general practice
and won't break assumptions in other parts of the code like SCP
transport.

Change-Id: Ied63c6e1970e3dfc675da5e5f94579fbb06fea51
This commit is contained in:
Harald Welte
2024-05-26 10:45:06 +02:00
parent 8844603941
commit a823ce89f6

View File

@@ -618,7 +618,7 @@ class SimCardCommands:
def status(self) -> ResTuple:
"""Execute a STATUS command as per TS 102 221 Section 11.1.2."""
return self.send_apdu_checksw(self.cla4lchan('80') + 'F20000ff')
return self.send_apdu_checksw(self.cla4lchan('80') + 'F2000000')
def deactivate_file(self) -> ResTuple:
"""Execute DECATIVATE FILE command as per TS 102 221 Section 11.1.14."""