[Pcsclite-cvs-commit] r2120 - trunk/Drivers/ccid/src
Ludovic Rousseau
rousseau at costa.debian.org
Thu Aug 3 10:04:04 UTC 2006
Author: rousseau
Date: 2006-08-03 10:04:01 +0000 (Thu, 03 Aug 2006)
New Revision: 2120
Modified:
trunk/Drivers/ccid/src/commands.c
Log:
SecurePINVerify()/SecurePINModify(): the USB timeout shall be greater
than the reader timeout so we get the reader answer. I use a margin of
10 seconds.
Thanks to Gerald Richter for the bug report
Modified: trunk/Drivers/ccid/src/commands.c
===================================================================
--- trunk/Drivers/ccid/src/commands.c 2006-08-01 20:05:22 UTC (rev 2119)
+++ trunk/Drivers/ccid/src/commands.c 2006-08-03 10:04:01 UTC (rev 2120)
@@ -289,7 +289,7 @@
i2dw(a - 10, cmd + 1); /* CCID message length */
old_read_timeout = ccid_descriptor -> readTimeout;
- ccid_descriptor -> readTimeout = max(30, TxBuffer[0]); /* at least 30 seconds */
+ ccid_descriptor -> readTimeout = max(30, TxBuffer[0]+10); /* at least 30 seconds */
if (WritePort(reader_index, a, cmd) != STATUS_SUCCESS)
{
@@ -509,7 +509,7 @@
i2dw(a - 10, cmd + 1); /* command length (includes bPINOperation) */
old_read_timeout = ccid_descriptor -> readTimeout;
- ccid_descriptor -> readTimeout = max(30, TxBuffer[0]); /* at least 30 seconds */
+ ccid_descriptor -> readTimeout = max(30, TxBuffer[0]+10); /* at least 30 seconds */
if (WritePort(reader_index, a, cmd) != STATUS_SUCCESS)
{
More information about the Pcsclite-cvs-commit
mailing list