aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2023-05-27 13:45:01 +0200
committerlaforge <laforge@osmocom.org>2023-06-03 12:45:35 +0000
commitba6d6ab64f8f7322adc251ec9ed9814f62e6c18d (patch)
tree7ff699ded768efa48bb4ec3f7d44d0d8a29816a0
parent455611c9a33099673b1807d74769597d8c1805d1 (diff)
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
-rw-r--r--pySim/ts_31_102.py4
1 files changed, 2 insertions, 2 deletions
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 EF_SUPI_NAI(TransparentEF):
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]):