aboutsummaryrefslogtreecommitdiffstats
path: root/pySim-shell.py
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2023-09-06 14:54:14 +0200
committerPhilipp Maier <pmaier@sysmocom.de>2023-09-06 14:57:55 +0200
commit4840d4dc8f887a7193fbd71cea4619b06a02f91c (patch)
tree728af7057b03577b534acc5edcb5b6a74cbb5c83 /pySim-shell.py
parent3a37ad015c3fab6d2e34a08e16a1d6197f8bdfba (diff)
pySim-shell: fix commandline option -a (verify_adm)
The commandline option -a, which does an ADM verification on startup, does no longer work since the verify_adm method is no longer available in the card base classes (cards.py). Let's use the verify_chv method from SimCardCommands instead. Related: RT#68294 Change-Id: Ic1e54d0e9e722d64b3fbeb044134044d47946f7c
Diffstat (limited to 'pySim-shell.py')
-rwxr-xr-xpySim-shell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pySim-shell.py b/pySim-shell.py
index af7dbca..c7b2607 100755
--- a/pySim-shell.py
+++ b/pySim-shell.py
@@ -1049,7 +1049,7 @@ if __name__ == '__main__':
if not card:
print("Card error, cannot do ADM verification with supplied ADM pin now.")
try:
- card.verify_adm(h2b(pin_adm))
+ card._scc.verify_chv(card._adm_chv_num, h2b(pin_adm))
except Exception as e:
print(e)