laforge has uploaded this change for review.
Reference pySim.filesystem derived classes from SAIP templates
Change-Id: Ia1c810262f1cfa48dae192c7de620c7f0fb69c25
---
M pySim/esim/saip/__init__.py
1 file changed, 15 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/56/37656/1
diff --git a/pySim/esim/saip/__init__.py b/pySim/esim/saip/__init__.py
index 6cddf3e..46ef69e 100644
--- a/pySim/esim/saip/__init__.py
+++ b/pySim/esim/saip/__init__.py
@@ -24,6 +24,9 @@
from pySim.utils import bertlv_parse_tag, bertlv_parse_len, b2h, h2b, dec_imsi, Hexstr
from pySim.ts_102_221 import FileDescriptor
+from pySim.filesystem import CardADF
+from pySim.ts_31_102 import ADF_USIM
+from pySim.ts_31_103 import ADF_ISIM
from pySim.construct import build_construct
from pySim.esim import compile_asn1_subdir
from pySim.esim.saip import templates
@@ -44,6 +47,7 @@
# we only use the base DN of each OID; there may be subsequent versions underneath it
templates = []
mandatory_services = []
+ adf: CardADF = None
@classmethod
def adf_name(cls):
@@ -65,6 +69,7 @@
oid.DF_PHONEBOOK_ADF_USIM, oid.DF_GSM_ACCESS_ADF_USIM,
oid.DF_EAP, oid.DF_5GS, oid.DF_SAIP, oid.DF_SNPN,
oid.DF_5GProSe]
+ adf = ADF_USIM()
class NaaIsim(Naa):
name = "isim"
@@ -72,6 +77,7 @@
mandatory_services = ["isim"]
pe_types = ["isim", "opt-isim"]
templates = [oid.ADF_ISIM_by_default, oid.ADF_ISIMopt_not_by_default]
+ adf = ADF_ISIM()
NAAs = {
NaaCsim.name: NaaCsim,
To view, visit change 37656. To unsubscribe, or for help writing mail filters, visit settings.