mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-31 08:23:22 +03:00
commands: check for status word in USIM authenticate command
Change-Id: I4c7e7261dd597cef0825826b36d50a144efa90d9
This commit is contained in:
@@ -359,7 +359,7 @@ class SimCardCommands(object):
|
|||||||
p2 = '81'
|
p2 = '81'
|
||||||
elif context == 'gsm':
|
elif context == 'gsm':
|
||||||
p2 = '80'
|
p2 = '80'
|
||||||
(data, sw) = self._tp.send_apdu_constr(self.cla_byte, '88', '00', p2, AuthCmd3G, cmd_data, AuthResp3G)
|
(data, sw) = self._tp.send_apdu_constr_checksw(self.cla_byte, '88', '00', p2, AuthCmd3G, cmd_data, AuthResp3G)
|
||||||
if 'auts' in data:
|
if 'auts' in data:
|
||||||
ret = {'synchronisation_failure': data}
|
ret = {'synchronisation_failure': data}
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user