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:
Philipp Maier
2018-08-23 10:27:04 +02:00
parent 087feff7cb
commit a3de5a331e

View File

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