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.orglaforge has submitted this change. ( 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(-) Approvals: Jenkins Builder: Verified laforge: Looks good to me, approved 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-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge at osmocom.org> Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200401/dc4e7ff6/attachment.htm>