From b582c3c7ea1cb46deb074979e48b20d3e7100732 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 7 Dec 2023 23:29:11 +0100 Subject: [PATCH] euicc: Fix TLV IE definitions for SetNickname{Req,Resp} The metaclass uese the 'nested' attribute, while the existing code accidentially used the 'children' attribute. The latter is used by instances for actual child classes, while the Class/nested attribute is for the list of classes whose instancse could be potential children. Change-Id: I968bd84d074dcdcec37d99be5d3d4edac9c35a0c --- pySim/euicc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pySim/euicc.py b/pySim/euicc.py index c0705257..19b1c57f 100644 --- a/pySim/euicc.py +++ b/pySim/euicc.py @@ -245,11 +245,11 @@ class GetEuiccData(BER_TLV_IE, tag=0xbf3e, nested=[TagList, EidValue]): # SGP.22 Section 5.7.21: ES10c SetNickname class SnrProfileNickname(BER_TLV_IE, tag=0x8f): _construct = Utf8Adapter(GreedyBytes) -class SetNicknameReq(BER_TLV_IE, tag=0xbf29, children=[Iccid, SnrProfileNickname]): +class SetNicknameReq(BER_TLV_IE, tag=0xbf29, nested=[Iccid, SnrProfileNickname]): pass class SetNicknameResult(BER_TLV_IE, tag=0x80): _construct = Enum(Int8ub, ok=0, iccidNotFound=1, undefinedError=127) -class SetNicknameResp(BER_TLV_IE, tag=0xbf29, children=[SetNicknameResult]): +class SetNicknameResp(BER_TLV_IE, tag=0xbf29, nested=[SetNicknameResult]): pass # SGP.32 Section 5.9.10: ES10b: GetCerts