SAIP: declare used templates in header GFSTEList

Populate eUICC-Mandatory-GFSTEList with the MF and USIM template OIDs the
profile depends on (was empty). 109 tests pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
A ashkan@beigi.net 2026-07-02 02:57:02 +00:00
parent 9a36b1a5fa
commit d58a0bf915
2 changed files with 4 additions and 1 deletions

View File

@ -106,7 +106,8 @@ def create_saip_profile(
"profileType": (profile_name or "Emergency 5G")[:100],
"iccid": enc_iccid(iccid),
"eUICC-Mandatory-services": {"usim": None, "milenage": None},
"eUICC-Mandatory-GFSTEList": [],
# Declare the file-system templates this profile depends on.
"eUICC-Mandatory-GFSTEList": [MF_TEMPLATE_OID, USIM_TEMPLATE_OID],
})
mf = ("mf", {
"mf-header": {"identification": 1},

View File

@ -78,6 +78,8 @@ class TestSaipEncoding:
by = dict(pes)
assert by["header"]["iccid"] == enc_iccid(iccid)
assert by["header"]["major-version"] == 3
assert by["header"]["eUICC-Mandatory-GFSTEList"] == [
saip.MF_TEMPLATE_OID, saip.USIM_TEMPLATE_OID]
assert by["mf"]["ef-iccid"] == [("fillFileContent", enc_iccid(iccid))]
@saip_required