diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2018-08-23 10:27:04 +0200 |
---|---|---|
committer | Philipp Maier <pmaier@sysmocom.de> | 2018-08-23 10:44:33 +0200 |
commit | a3de5a331e0b2b1a2a7425dbbc7c51d45f6a2a2b (patch) | |
tree | 10864eed8fadc26b05dbc67ac6101e9e6ac86f57 | |
parent | 087feff7cb4d8b8d4a5f7c84a426203401753a61 (diff) |
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
-rw-r--r-- | pySim/cards.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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) |