laforge has uploaded this change for review.
cards: All derived of SimCardBase use CLA=A0; all UiccCardBase use CLA=00
Change-Id: Id61b549f68410631529349ee62b08a102f609405
---
M pySim/cards.py
M pySim/legacy/cards.py
2 files changed, 14 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/95/33695/1
diff --git a/pySim/cards.py b/pySim/cards.py
index a9f2e59..2f4260f 100644
--- a/pySim/cards.py
+++ b/pySim/cards.py
@@ -76,6 +76,10 @@
"""Here we only add methods for commands specified in TS 51.011, without
any higher-layer processing."""
+ def __init__(self, scc: LinkBase):
+ super(SimCardBase, self).__init__(scc)
+ self._scc.cla_byte = "A0"
+
name = 'SIM'
@@ -84,6 +88,7 @@
def __init__(self, ssc: LinkBase):
super(UiccCardBase, self).__init__(ssc)
+ self._scc.cla_byte = "00"
# See also: ETSI TS 102 221, Table 9.3
self._adm_chv_num = 0xA0
diff --git a/pySim/legacy/cards.py b/pySim/legacy/cards.py
index 02c78d4..b865d4b 100644
--- a/pySim/legacy/cards.py
+++ b/pySim/legacy/cards.py
@@ -892,7 +892,6 @@
def __init__(self, ssc):
super(SysmoUSIMSJS1, self).__init__(ssc)
- self._scc.cla_byte = "00"
self._scc.sel_ctrl = "0004" # request an FCP
@classmethod
@@ -1205,7 +1204,6 @@
def __init__(self, ssc):
super(WavemobileSim, self).__init__(ssc)
self._adm_chv_num = 0x0A
- self._scc.cla_byte = "00"
self._scc.sel_ctrl = "0004" # request an FCP
@classmethod
@@ -1300,7 +1298,6 @@
def __init__(self, ssc):
super(SysmoISIMSJA2, self).__init__(ssc)
- self._scc.cla_byte = "00"
self._scc.sel_ctrl = "0004" # request an FCP
@classmethod
To view, visit change 33695. To unsubscribe, or for help writing mail filters, visit settings.