diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2022-04-22 00:29:10 +0300 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2023-03-22 09:57:32 +0000 |
commit | 9970f59f4fd0a51da2b2e3a8194e6d6af0468581 (patch) | |
tree | fa6e3a5cb26a1852f8ee21689bb70582308cfb07 /pySim/commands.py | |
parent | 1dd5cb540da0b7346482a16698ef8f5d74487fdb (diff) |
SimCardCommands.run_gsm(): use send_apdu_checksw()
Change-Id: Ib713cf8154a3aba72bc5776a8d99ec47631ade28
Diffstat (limited to 'pySim/commands.py')
-rw-r--r-- | pySim/commands.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pySim/commands.py b/pySim/commands.py index ba37876..b0f8b39 100644 --- a/pySim/commands.py +++ b/pySim/commands.py @@ -407,7 +407,7 @@ class SimCardCommands: if len(rand) != 32: raise ValueError('Invalid rand') self.select_path(['3f00', '7f20']) - return self._tp.send_apdu('a0' + '88000010' + rand) + return self._tp.send_apdu_checksw('a0' + '88000010' + rand, sw='9000') def authenticate(self, rand: str, autn: str, context='3g'): """Execute AUTHENTICATE (USIM/ISIM). |