From a3de5a331e0b2b1a2a7425dbbc7c51d45f6a2a2b Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Thu, 23 Aug 2018 10:27:04 +0200 Subject: [PATCH] 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 --- pySim/cards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pySim/cards.py b/pySim/cards.py index 4dee0d8d..e294f9ac 100644 --- a/pySim/cards.py +++ b/pySim/cards.py @@ -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)