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

Ludovic Rousseau rousseau at alioth.debian.org
Mon Nov 6 15:36:57 CET 2006


Author: rousseau
Date: 2006-11-06 15:36:56 +0100 (Mon, 06 Nov 2006)
New Revision: 2195

Modified:
   trunk/Drivers/ccid/src/commands.c
Log:
SecurePINVerify(): the GemPC Pinpad does not support
a bEntryValidationCondition different of 0x02 (validation key pressed)


Modified: trunk/Drivers/ccid/src/commands.c
===================================================================
--- trunk/Drivers/ccid/src/commands.c	2006-10-31 07:54:25 UTC (rev 2194)
+++ trunk/Drivers/ccid/src/commands.c	2006-11-06 14:36:56 UTC (rev 2195)
@@ -221,6 +221,16 @@
 				TxBuffer[8]);
 			TxBuffer[8] = 0x01;
 		}
+
+		/* The reader does not support, and actively reject, "max size reached"
+		 * and "timeout occured" validation conditions */
+		if (0x02 != TxBuffer[7])
+		{
+			DEBUG_INFO2("Correct bEntryValidationCondition for GemPC Pinpad (was %d)",
+				TxBuffer[7]);
+			TxBuffer[7] = 0x02;	/* validation key pressed */
+		}
+
 	}
 #endif
 




More information about the Pcsclite-cvs-commit mailing list