mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-19 20:08:36 +03:00
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
This commit is contained in:
@@ -149,6 +149,10 @@ class Card(object):
|
||||
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':
|
||||
|
||||
Reference in New Issue
Block a user