From: <lu...@us...> - 2009-10-04 14:19:31
|
Revision: 318 http://pyscard.svn.sourceforge.net/pyscard/?rev=318&view=rev Author: ludov Date: 2009-10-04 14:19:19 +0000 (Sun, 04 Oct 2009) Log Message: ----------- normalize ATR before matching Modified Paths: -------------- trunk/contrib/parseATR/parseATR.py Modified: trunk/contrib/parseATR/parseATR.py =================================================================== --- trunk/contrib/parseATR/parseATR.py 2009-10-04 13:26:23 UTC (rev 317) +++ trunk/contrib/parseATR/parseATR.py 2009-10-04 14:19:19 UTC (rev 318) @@ -655,6 +655,7 @@ def match_atr(atr): """ try to find card description for a given ATR """ card = [] + atr = toHexString(normalize(atr)) file = open("smartcard_list.txt") for line in file: if line.startswith("#"): @@ -679,7 +680,7 @@ #ATR = "3B A7 00 40 18 80 65 A2 08 01 01 52" ATR = "3F FF 95 00 FF 91 81 71 A0 47 00 44 4E 41 53 50 30 31 31 20 52 65 76 42 30 36 4E" atr = parseATR(ATR) - print "ATR:", ATR + print "ATR:", toHexString(normalize(ATR)) text = atr_display_txt(atr) print text This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |