[Pcsclite-cvs-commit] r1677 - trunk/Drivers/ccid/src
Ludovic Rousseau
rousseau at costa.debian.org
Tue Sep 27 13:07:39 UTC 2005
Author: rousseau
Date: 2005-09-27 13:07:38 +0000 (Tue, 27 Sep 2005)
New Revision: 1677
Modified:
trunk/Drivers/ccid/src/commands.c
Log:
CCID_Transmit(): cmd[8-9] is the expected length in character mode only.
It shall be 0x0000 for TPDU and short APDU modes.
Modified: trunk/Drivers/ccid/src/commands.c
===================================================================
--- trunk/Drivers/ccid/src/commands.c 2005-09-26 14:43:51 UTC (rev 1676)
+++ trunk/Drivers/ccid/src/commands.c 2005-09-27 13:07:38 UTC (rev 1677)
@@ -583,7 +583,7 @@
cmd[5] = ccid_descriptor->bCurrentSlotIndex; /* slot number */
cmd[6] = (*ccid_descriptor->pbSeq)++;
cmd[7] = bBWI; /* extend block waiting timeout */
- cmd[8] = rx_length & 0xFF; /* Expected length */
+ cmd[8] = rx_length & 0xFF; /* Expected length, in character mode only */
cmd[9] = (rx_length >> 8) & 0xFF;
/* check that the command is not too large */
More information about the Pcsclite-cvs-commit
mailing list