aboutsummaryrefslogtreecommitdiffstats
path: root/pySim/commands.py
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2022-04-22 00:29:10 +0300
committerlaforge <laforge@osmocom.org>2023-03-22 09:57:32 +0000
commit9970f59f4fd0a51da2b2e3a8194e6d6af0468581 (patch)
treefa6e3a5cb26a1852f8ee21689bb70582308cfb07 /pySim/commands.py
parent1dd5cb540da0b7346482a16698ef8f5d74487fdb (diff)
SimCardCommands.run_gsm(): use send_apdu_checksw()
Diffstat (limited to 'pySim/commands.py')
-rw-r--r--pySim/commands.py2
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).