mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-16 18:38:32 +03:00
cards: do not feed ascii as adm for sysmosim-gr1
When sysmosom-gr1 is used with a custom ADM key, then the ADM string is not fed through h2b() like we see it with sysmo-usim-sjs1 for example. - feed the ADM to h2b() before use Change-Id: I0b7cab380b89612ed3b8318e014161038335fe1b Related: OS#3405
This commit is contained in:
@@ -338,7 +338,7 @@ class GrcardSim(Card):
|
||||
|
||||
# Authenticate using ADM PIN 5
|
||||
if p['pin_adm']:
|
||||
pin = p['pin_adm']
|
||||
pin = h2b(p['pin_adm'])
|
||||
else:
|
||||
pin = h2b("4444444444444444")
|
||||
self._scc.verify_chv(5, pin)
|
||||
|
||||
Reference in New Issue
Block a user