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
diff --git a/pySim/cards.py b/pySim/cards.py
index 4dee0d8..e294f9a 100644
--- a/pySim/cards.py
+++ b/pySim/cards.py
@@ -338,7 +338,7 @@
# 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)