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
This commit is contained in:
Philipp Maier 2023-09-06 14:54:14 +02:00
parent 3a37ad015c
commit 4840d4dc8f
1 changed files with 1 additions and 1 deletions

View File

@ -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)