[Pcsclite-cvs-commit] r4400 - /trunk/PCSC/src/winscard.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Mon Sep 28 12:09:02 UTC 2009


Author: rousseau
Date: Mon Sep 28 12:09:02 2009
New Revision: 4400

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4400
Log:
SCardTransmit(): do not limit the minimum size of an APDU to 4 bytes.
non ISO 7816-4 compliant cards (like Mifare DESFIRE) may use shorter commands

Thanks to Björn Kupfer for the bug report

Modified:
    trunk/PCSC/src/winscard.c

Modified: trunk/PCSC/src/winscard.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard.c?rev=4400&op=diff
==============================================================================
--- trunk/PCSC/src/winscard.c (original)
+++ trunk/PCSC/src/winscard.c Mon Sep 28 12:09:02 2009
@@ -1554,12 +1554,6 @@
 		return SCARD_E_INVALID_PARAMETER;
 
 	/*
-	 * Must at least send a 4 bytes APDU
-	 */
-	if (cbSendLength < 4)
-		return SCARD_E_INVALID_PARAMETER;
-
-	/*
 	 * Must at least have 2 status words even for SCardControl
 	 */
 	if (dwRxLength < 2)




More information about the Pcsclite-cvs-commit mailing list