From 59f9a3862301735a433aa67bed153d380e3e569b Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 22 May 2021 00:17:26 +0200 Subject: [PATCH] commands: check for status word in USIM authenticate command Change-Id: I4c7e7261dd597cef0825826b36d50a144efa90d9 --- pySim/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pySim/commands.py b/pySim/commands.py index 0b3d9b61..83ad167b 100644 --- a/pySim/commands.py +++ b/pySim/commands.py @@ -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: