[Pcsclite-cvs-commit] r7010 - trunk/HandlerTest/PCSC

ludovic.rousseau at free.fr ludovic.rousseau at free.fr
Fri Oct 10 13:37:48 UTC 2014


Author: rousseau
Date: 2014-10-10 13:37:48 +0000 (Fri, 10 Oct 2014)
New Revision: 7010

Modified:
   trunk/HandlerTest/PCSC/validation.py
Log:
Two ATRs are valid for extended case 2 APDU


Modified: trunk/HandlerTest/PCSC/validation.py
===================================================================
--- trunk/HandlerTest/PCSC/validation.py	2014-10-09 16:42:48 UTC (rev 7009)
+++ trunk/HandlerTest/PCSC/validation.py	2014-10-10 13:37:48 UTC (rev 7010)
@@ -138,7 +138,11 @@
         print "Case 2 extended"
         print
 
-        if toHexString(self.ATR) != "3B D6 18 00 80 B1 80 6D 1F 03 80 51 00 61 10 30 9E":
+        # ATRs of the Athena test cards
+        Athena_ATRs = ["3B D6 18 00 80 B1 80 6D 1F 03 80 51 00 61 10 30 9E",
+                       "3F 96 18 80 01 80 51 00 61 10 30 9F"]
+
+        if toHexString(self.ATR) not in Athena_ATRs:
             print_error("Wrong card inserted!")
             print "Got ATR:", toHexString(self.ATR)
             return




More information about the Pcsclite-cvs-commit mailing list