diff options
author | Harald Welte <laforge@osmocom.org> | 2024-02-20 22:17:29 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2024-02-21 09:23:58 +0100 |
commit | b18c7d9be09882aee9b79f5b7d4f9bb51af97a09 (patch) | |
tree | 22d8b6c0e04219d4603ca43cf64d4567eeb28485 /pySim | |
parent | 6d63712b51ba3c77361f9dd11f6fe672b0ddedca (diff) |
saip.personalization: Fix encoding of ICCID in ProfileHeader
To make things exciting, they decided that the ICCID in the profile
header is encoded different from the ICCID contained in EF.ICCID...
Change-Id: I5eacdcdc6bd0ada431eb047bfae930d79d6e3af8
Diffstat (limited to 'pySim')
-rw-r--r-- | pySim/esim/saip/personalization.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pySim/esim/saip/personalization.py b/pySim/esim/saip/personalization.py index 3dad208..dc3435b 100644 --- a/pySim/esim/saip/personalization.py +++ b/pySim/esim/saip/personalization.py @@ -77,7 +77,7 @@ class Iccid(ConfigurableParameter): def apply(self, pes: ProfileElementSequence): # patch the header - pes.get_pe_for_type('header').decoded['iccid'] = self.value + pes.get_pe_for_type('header').decoded['iccid'] = h2b(rpad(self.value, 20)) # patch MF/EF.ICCID file_replace_content(pes.get_pe_for_type('mf').decoded['ef-iccid'], h2b(enc_iccid(self.value))) |