commands: check for status word in USIM authenticate command

Change-Id: I4c7e7261dd597cef0825826b36d50a144efa90d9
This commit is contained in:
Harald Welte
2021-05-22 00:17:26 +02:00
parent 2db843e7b5
commit 59f9a38623

View File

@@ -359,7 +359,7 @@ class SimCardCommands(object):
p2 = '81'
elif context == 'gsm':
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:
ret = {'synchronisation_failure': data}
else: