Change in pysim[master]: cards: All USIM should use CLA 0x00 and request the FCP

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Sat May 22 07:33:11 UTC 2021


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/24335 )


Change subject: cards: All USIM should use CLA 0x00 and request the FCP
......................................................................

cards: All USIM should use CLA 0x00 and request the FCP

This is a matter of TS 102 221, and not a matter of the specific
implementation (card model).

Change-Id: I4e684760cef212d807e541ea74855208249ecf63
---
M pySim/cards.py
1 file changed, 2 insertions(+), 6 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/35/24335/1

diff --git a/pySim/cards.py b/pySim/cards.py
index 7744c7a..5168a39 100644
--- a/pySim/cards.py
+++ b/pySim/cards.py
@@ -298,6 +298,8 @@
 
 	def __init__(self, ssc):
 		super(UsimCard, self).__init__(ssc)
+		self._scc.cla_byte = "00"
+		self._scc.sel_ctrl = "0004" #request an FCP
 
 	def read_ehplmn(self):
 		(res, sw) = self._scc.read_binary(EF_USIM_ADF_map['EHPLMN'])
@@ -890,8 +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
 	def autodetect(kls, scc):
@@ -1189,8 +1189,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
 	def autodetect(kls, scc):
@@ -1280,8 +1278,6 @@
 
 	def __init__(self, ssc):
 		super(SysmoISIMSJA2, self).__init__(ssc)
-		self._scc.cla_byte = "00"
-		self._scc.sel_ctrl = "0004" #request an FCP
 
 	@classmethod
 	def autodetect(kls, scc):

-- 
To view, visit https://gerrit.osmocom.org/c/pysim/+/24335
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I4e684760cef212d807e541ea74855208249ecf63
Gerrit-Change-Number: 24335
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210522/adff3f40/attachment.htm>


More information about the gerrit-log mailing list