From cfb665bb3f958a7cb219dbb06ecdbef4b060ee99 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Thu, 20 Jul 2023 17:30:24 +0200 Subject: [PATCH] pySim-shell: fix verify_adm command The comman verify_adm 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. Change-Id: Ic87e1bff221b10d33d36da32b589e2737f6ca9cd --- pySim-shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pySim-shell.py b/pySim-shell.py index 3b56bfd1..2e332d3a 100755 --- a/pySim-shell.py +++ b/pySim-shell.py @@ -781,7 +781,7 @@ class PySimCommands(CommandSet): "cannot find ADM-PIN for ICCID '%s'" % (self._cmd.iccid)) if pin_adm: - self._cmd.card.verify_adm(h2b(pin_adm)) + self._cmd.card._scc.verify_chv(self._cmd.card._adm_chv_num, h2b(pin_adm)) else: raise ValueError("error: cannot authenticate, no adm-pin!")