From 91f26d7f0aa97d4b86c88602fe03a15bf5f1393b Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Wed, 20 Mar 2019 12:12:51 +0100 Subject: [PATCH] commands: correct case of a TLV tag (A5 => a5) The hexadecimal tag defintions of pytlv are case sensitive strings. So 'A5' is something different than 'a5'. Pytlv uses lower case letters for the upper hexadecimal digits. Lets correct this. Change-Id: I41a9933707783f6b1b68ebd91a365405ac0892d0 Related: OS#3850 --- pySim/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pySim/commands.py b/pySim/commands.py index 73c2247f..913f394d 100644 --- a/pySim/commands.py +++ b/pySim/commands.py @@ -35,7 +35,7 @@ class SimCardCommands(object): # see also: ETSI TS 102 221, chapter 11.1.1.3.1 Response for MF, # DF or ADF from pytlv.TLV import TLV - tlvparser = TLV(['82', '83', '84', 'A5', '8a', '8b', '8c', '80', 'ab', 'c6', '81', '88']) + tlvparser = TLV(['82', '83', '84', 'a5', '8a', '8b', '8c', '80', 'ab', 'c6', '81', '88']) # pytlv is case sensitive! fcp = fcp.lower()