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
Fri Nov 19 13:10:05 UTC 2021


dexter has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/30/26330/1

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: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211119/92add2cb/attachment.htm>


More information about the gerrit-log mailing list