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

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Mon Mar 26 14:11:14 UTC 2012


Author: rousseau
Date: Mon Mar 26 14:11:14 2012
New Revision: 6251

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6251
Log:
SecurePINModify(): set the minimum timeout to 90 seconds

Some readers have a default timeout of 60 seconds. We need to use a
larger value to timeout _after_ the reader.

Same change as in revision 6243 but for SecurePINModify() instead of
SecurePINVerify()

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=6251&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/commands.c (original)
+++ trunk/Drivers/ccid/src/commands.c Mon Mar 26 14:11:14 2012
@@ -702,7 +702,7 @@
 	i2dw(a - 10, cmd + 1);	/* command length (includes bPINOperation) */
 
 	old_read_timeout = ccid_descriptor -> readTimeout;
-	ccid_descriptor -> readTimeout = max(30, TxBuffer[0]+10)*1000;	/* at least 30 seconds */
+	ccid_descriptor -> readTimeout = max(90, TxBuffer[0]+10)*1000;	/* at least 90 seconds */
 
 	if (WritePort(reader_index, a, cmd) != STATUS_SUCCESS)
 	{




More information about the Pcsclite-cvs-commit mailing list