mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-29 19:41:42 +03:00
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
This commit is contained in:
@@ -1066,11 +1066,11 @@ class EF_SUPI_NAI(TransparentEF):
|
|||||||
|
|
||||||
class GlobalLineIdentifier(TLV_IE, tag=0x81):
|
class GlobalLineIdentifier(TLV_IE, tag=0x81):
|
||||||
# TS 23.003 clause 28.16.2
|
# TS 23.003 clause 28.16.2
|
||||||
pass
|
_construct = GreedyString("utf8")
|
||||||
|
|
||||||
class GlobalCableIdentifier(TLV_IE, tag=0x82):
|
class GlobalCableIdentifier(TLV_IE, tag=0x82):
|
||||||
# TS 23.003 clause 28.15.2
|
# TS 23.003 clause 28.15.2
|
||||||
pass
|
_construct = GreedyString("utf8")
|
||||||
|
|
||||||
class NAI_TLV_Collection(TLV_IE_Collection,
|
class NAI_TLV_Collection(TLV_IE_Collection,
|
||||||
nested=[NetworkSpecificIdentifier, GlobalLineIdentifier, GlobalCableIdentifier]):
|
nested=[NetworkSpecificIdentifier, GlobalLineIdentifier, GlobalCableIdentifier]):
|
||||||
|
|||||||
Reference in New Issue
Block a user