[Pcsclite-cvs-commit] r2095 - trunk/Drivers/ccid/src

Ludovic Rousseau rousseau at costa.debian.org
Mon Jul 3 14:54:59 UTC 2006


Author: rousseau
Date: 2006-07-03 14:54:59 +0000 (Mon, 03 Jul 2006)
New Revision: 2095

Modified:
   trunk/Drivers/ccid/src/commands.c
Log:
CmdXfrBlock(): call CmdXfrBlockAPDU_extended() if the reader supports
Extended APDU


Modified: trunk/Drivers/ccid/src/commands.c
===================================================================
--- trunk/Drivers/ccid/src/commands.c	2006-07-03 14:21:15 UTC (rev 2094)
+++ trunk/Drivers/ccid/src/commands.c	2006-07-03 14:54:59 UTC (rev 2095)
@@ -733,13 +733,17 @@
 			break;
 
 		case CCID_CLASS_SHORT_APDU:
-		case CCID_CLASS_EXTENDED_APDU:
-			/* We only support extended APDU if the reader can support the
-			 * command length. See test above */
 			return_value = CmdXfrBlockTPDU_T0(reader_index,
 				tx_length, tx_buffer, rx_length, rx_buffer);
 			break;
 
+		case CCID_CLASS_EXTENDED_APDU:
+			return_value = CmdXfrBlockAPDU_extended(reader_index,
+				tx_length, tx_buffer, rx_length, rx_buffer);
+			if (return_value != IFD_SUCCESS)
+				*rx_length = 0;
+			break;
+
 		case CCID_CLASS_CHARACTER:
 			if (protocol == T_0)
 				return_value = CmdXfrBlockCHAR_T0(reader_index, tx_length,
@@ -989,7 +993,7 @@
 	*rx_length = received_length;
 
 	return IFD_SUCCESS;
-} /* CmdXfrBlockTPDU_T0_extended */
+} /* CmdXfrBlockAPDU_extended */
 
 
 /*****************************************************************************




More information about the Pcsclite-cvs-commit mailing list