laforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/33065 
)

Change subject: ts_31_102: EF_SUPI_NAI: Decode/Encode GLI+GCI as UTF-8 strings
......................................................................

ts_31_102: EF_SUPI_NAI: Decode/Encode GLI+GCI as UTF-8 strings

According to TS 23.003 Section 28.15 and 28.16 both GLI and GCI
are NAI as defined in IETF RFC 7542, which in turn specifies they
are encoded in UTF-8.

Change-Id: I0a82bd0d0a2badd7bc4a1f8de2c3e3c144ee5b12
---
M pySim/ts_31_102.py
1 file changed, 15 insertions(+), 2 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  fixeria: Looks good to me, but someone else must approve
  Jenkins Builder: Verified




diff --git a/pySim/ts_31_102.py b/pySim/ts_31_102.py
index 73c5fd5..14e7cae 100644
--- a/pySim/ts_31_102.py
+++ b/pySim/ts_31_102.py
@@ -1066,11 +1066,11 @@

     class GlobalLineIdentifier(TLV_IE, tag=0x81):
         # TS 23.003 clause 28.16.2
-        pass
+        _construct = GreedyString("utf8")

     class GlobalCableIdentifier(TLV_IE, tag=0x82):
         # TS 23.003 clause 28.15.2
-        pass
+        _construct = GreedyString("utf8")

     class NAI_TLV_Collection(TLV_IE_Collection,
                              nested=[NetworkSpecificIdentifier, 
GlobalLineIdentifier, GlobalCableIdentifier]):

--
To view, visit https://gerrit.osmocom.org/c/pysim/+/33065
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I0a82bd0d0a2badd7bc4a1f8de2c3e3c144ee5b12
Gerrit-Change-Number: 33065
Gerrit-PatchSet: 3
Gerrit-Owner: laforge <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <[email protected]>
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-MessageType: merged

Reply via email to