laforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/42058?usp=email )
Change subject: euicc: get_profiles_info: add additional tags ......................................................................
euicc: get_profiles_info: add additional tags
Add definitions for ProfileOwner (decoded), Notification Configuration Info, SM-DP+ proprietary data, Profile Policy Rules.
Change-Id: I727dbe34d87a42bb3b526bd7a8accd687d20a208 --- M pySim/euicc.py 1 file changed, 20 insertions(+), 1 deletion(-)
Approvals: dexter: Looks good to me, approved neels: Looks good to me, but someone else must approve Jenkins Builder: Verified laforge: Looks good to me, approved
diff --git a/pySim/euicc.py b/pySim/euicc.py index 2884c93..0a6c054 100644 --- a/pySim/euicc.py +++ b/pySim/euicc.py @@ -226,9 +226,28 @@ _construct = GreedyBytes class ProfileClass(BER_TLV_IE, tag=0x95): _construct = Enum(Int8ub, test=0, provisioning=1, operational=2) +class ProfilePolicyRules(BER_TLV_IE, tag=0x99): + _construct = GreedyBytes +class NotificationConfigurationInfo(BER_TLV_IE, tag=0xb6): + _construct = GreedyBytes + +# ProfileOwner +class ProfileOwnerPLMN(BER_TLV_IE, tag=0x80): + _construct = PlmnAdapter(Bytes(3)) +class ProfileOwnerGID1(BER_TLV_IE, tag=0x81): + _construct = GreedyBytes +class ProfileOwnerGID2(BER_TLV_IE, tag=0x82): + _construct = GreedyBytes +class ProfileOwner(BER_TLV_IE, tag=0xb7, nested=[ProfileOwnerPLMN, ProfileOwnerGID1, ProfileOwnerGID2]): + _construct = GreedyBytes + +class SMDPPProprietaryData(BER_TLV_IE, tag=0xb8): + _construct = GreedyBytes + class ProfileInfo(BER_TLV_IE, tag=0xe3, nested=[Iccid, IsdpAid, ProfileState, ProfileNickname, ServiceProviderName, ProfileName, IconType, Icon, - ProfileClass]): # FIXME: more IEs + ProfileClass, ProfilePolicyRules, NotificationConfigurationInfo, + ProfileOwner, SMDPPProprietaryData]): pass class ProfileInfoSeq(BER_TLV_IE, tag=0xa0, nested=[ProfileInfo]): pass