Change in pysim[master]: cards.py: Add generic function to read EF record in card class

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/.

herlesupreeth gerrit-no-reply at lists.osmocom.org
Wed Apr 1 07:37:22 UTC 2020


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


Change subject: cards.py: Add generic function to read EF record in card class
......................................................................

cards.py: Add generic function to read EF record in card class

This is a generic function applicable for reading EF records which doesnt require further processing
such EF.SMSP etc while decoding and also to avoid code duplication.

Change-Id: Ic0b4aa11e962b4bb328447b11533136a29ff72d3
---
M pySim/cards.py
1 file changed, 4 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/96/17696/1

diff --git a/pySim/cards.py b/pySim/cards.py
index 7d3b7b4..c702608 100644
--- a/pySim/cards.py
+++ b/pySim/cards.py
@@ -149,6 +149,10 @@
 		ef_path = ef in EF and EF[ef] or ef
 		return self._scc.read_binary(ef_path, length, offset)
 
+	def read_record(self, ef, rec_no):
+		ef_path = ef in EF and EF[ef] or ef
+		return self._scc.read_record(ef_path, rec_no)
+
 	def read_gid1(self):
 		(res, sw) = self._scc.read_binary(EF['GID1'])
 		if sw == '9000':

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

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Ic0b4aa11e962b4bb328447b11533136a29ff72d3
Gerrit-Change-Number: 17696
Gerrit-PatchSet: 1
Gerrit-Owner: herlesupreeth <herlesupreeth at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200401/7ff53dba/attachment.htm>


More information about the gerrit-log mailing list