[Pcsclite-cvs-commit] r4235 - /trunk/Drivers/ccid/src/commands.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Fri May 29 11:42:46 UTC 2009


Author: rousseau
Date: Fri May 29 11:42:46 2009
New Revision: 4235

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4235
Log:
CmdXfrBlockAPDU_extended(): Correctly ask for the next extended response
block.

Thanks to Harm Braams for the bug report

Modified:
    trunk/Drivers/ccid/src/commands.c

Modified: trunk/Drivers/ccid/src/commands.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/commands.c?rev=4235&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/commands.c (original)
+++ trunk/Drivers/ccid/src/commands.c Fri May 29 11:42:46 2009
@@ -1492,7 +1492,10 @@
 		 * next PC_to_RDR_XfrBlock command */
 		case 0x10:
 			/* send a nul block */
-			return_value = CCID_Transmit(reader_index, 0, NULL, 0, 0);
+			/* set wLevelParameter to 0010h: empty abData field,
+			 * continuation of response APDU is
+			 * expected in the next RDR_to_PC_DataBlock. */
+			return_value = CCID_Transmit(reader_index, 0, NULL, 0x10, 0);
 			if (return_value != IFD_SUCCESS)
 				return return_value;
 




More information about the Pcsclite-cvs-commit mailing list