[Pcsclite-cvs-commit] r4682 - in /trunk/PCSC/UnitaryTests: MCT_ReaderDirect.py control_get_firmware.py control_switch_interface.py

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Thu Jan 21 14:40:29 UTC 2010


Author: rousseau
Date: Thu Jan 21 14:40:28 2010
New Revision: 4682

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4682
Log:
do not try to reset the card on exit. We are talking to the reader. A
card may NOT be present.

Modified:
    trunk/PCSC/UnitaryTests/MCT_ReaderDirect.py
    trunk/PCSC/UnitaryTests/control_get_firmware.py
    trunk/PCSC/UnitaryTests/control_switch_interface.py

Modified: trunk/PCSC/UnitaryTests/MCT_ReaderDirect.py
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/UnitaryTests/MCT_ReaderDirect.py?rev=4682&op=diff
==============================================================================
--- trunk/PCSC/UnitaryTests/MCT_ReaderDirect.py (original)
+++ trunk/PCSC/UnitaryTests/MCT_ReaderDirect.py Thu Jan 21 14:40:28 2010
@@ -57,7 +57,7 @@
 
 
 cardConnection = readers()[0].createConnection()
-cardConnection.connect(mode=SCARD_SHARE_DIRECT)
+cardConnection.connect(mode=SCARD_SHARE_DIRECT, disposition=SCARD_LEAVE_CARD)
 
 featureList = getFeatureRequest(cardConnection)
 #print getPinProperties(cardConnection)

Modified: trunk/PCSC/UnitaryTests/control_get_firmware.py
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/UnitaryTests/control_get_firmware.py?rev=4682&op=diff
==============================================================================
--- trunk/PCSC/UnitaryTests/control_get_firmware.py (original)
+++ trunk/PCSC/UnitaryTests/control_get_firmware.py Thu Jan 21 14:40:28 2010
@@ -23,7 +23,7 @@
 
 for reader in readers():
     cardConnection = reader.createConnection()
-    cardConnection.connect(mode=SCARD_SHARE_DIRECT)
+    cardConnection.connect(mode=SCARD_SHARE_DIRECT, disposition=SCARD_LEAVE_CARD)
 
     get_firmware = [0x02]
     IOCTL_SMARTCARD_VENDOR_IFD_EXCHANGE = SCARD_CTL_CODE(1)

Modified: trunk/PCSC/UnitaryTests/control_switch_interface.py
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/UnitaryTests/control_switch_interface.py?rev=4682&op=diff
==============================================================================
--- trunk/PCSC/UnitaryTests/control_switch_interface.py (original)
+++ trunk/PCSC/UnitaryTests/control_switch_interface.py Thu Jan 21 14:40:28 2010
@@ -25,7 +25,7 @@
 def switch_interface(interface):
     for reader in readers():
         cardConnection = reader.createConnection()
-        cardConnection.connect(mode=SCARD_SHARE_DIRECT)
+        cardConnection.connect(mode=SCARD_SHARE_DIRECT, disposition=SCARD_LEAVE_CARD)
 
         switch_interface = [0x52, 0xF8, 0x04, 0x01, 0x00, interface]
         IOCTL_SMARTCARD_VENDOR_IFD_EXCHANGE = SCARD_CTL_CODE(1)




More information about the Pcsclite-cvs-commit mailing list