mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-23 05:48:34 +03:00
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
This commit is contained in:
@@ -781,7 +781,7 @@ class PySimCommands(CommandSet):
|
|||||||
"cannot find ADM-PIN for ICCID '%s'" % (self._cmd.iccid))
|
"cannot find ADM-PIN for ICCID '%s'" % (self._cmd.iccid))
|
||||||
|
|
||||||
if pin_adm:
|
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:
|
else:
|
||||||
raise ValueError("error: cannot authenticate, no adm-pin!")
|
raise ValueError("error: cannot authenticate, no adm-pin!")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user