Change in pysim[master]: cards: make _get_aid case insensitive

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

dexter gerrit-no-reply at lists.osmocom.org
Mon Nov 22 17:37:00 UTC 2021


dexter has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/26330 )

Change subject: cards: make _get_aid case insensitive
......................................................................

cards: make _get_aid case insensitive

There is no need to be case sensitive when the xSIM application name is
given as AID.

Change-Id: I9944d9180bf1ba35f44f0be2b05bdb725b5b8da9
---
M pySim/cards.py
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  daniel: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



diff --git a/pySim/cards.py b/pySim/cards.py
index 2319a56..a822161 100644
--- a/pySim/cards.py
+++ b/pySim/cards.py
@@ -284,6 +284,7 @@
 		# First (known) halves of the U/ISIM AID
 		aid_map["usim"] = "a0000000871002"
 		aid_map["isim"] = "a0000000871004"
+		adf = adf.lower()
 		if adf in aid_map:
 			return aid_map[adf]
 		return None

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

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I9944d9180bf1ba35f44f0be2b05bdb725b5b8da9
Gerrit-Change-Number: 26330
Gerrit-PatchSet: 2
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann at sysmocom.de>
Gerrit-Reviewer: dexter <pmaier at sysmocom.de>
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/20211122/695897c3/attachment.htm>


More information about the gerrit-log mailing list