[Pcsclite-cvs-commit] r7091 - trunk/Drivers/ccid/examples

ludovic.rousseau at free.fr ludovic.rousseau at free.fr
Mon Feb 9 10:23:16 UTC 2015


Author: rousseau
Date: 2015-02-09 10:23:16 +0000 (Mon, 09 Feb 2015)
New Revision: 7091

Modified:
   trunk/Drivers/ccid/examples/scardcontrol.c
Log:
Get bEntryValidationCondition value from FEATURE_IFD_PIN_PROPERTIES

Some drivers may implement FEATURE_IFD_PIN_PROPERTIES but not
FEATURE_GET_TLV_PROPERTIES.
You should be smart enough to get the bEntryValidationCondition value
from both possible sources.


Modified: trunk/Drivers/ccid/examples/scardcontrol.c
===================================================================
--- trunk/Drivers/ccid/examples/scardcontrol.c	2015-02-06 13:12:48 UTC (rev 7090)
+++ trunk/Drivers/ccid/examples/scardcontrol.c	2015-02-09 10:23:16 UTC (rev 7091)
@@ -490,8 +490,9 @@
 		printf(NORMAL "\n");
 
 		pin_properties = (PIN_PROPERTIES_STRUCTURE *)bRecvBuffer;
+		bEntryValidationCondition = pin_properties ->	bEntryValidationCondition;
 		PRINT_GREEN_HEX4(" wLcdLayout", pin_properties -> wLcdLayout);
-		PRINT_GREEN_DEC(" bEntryValidationCondition", pin_properties ->	bEntryValidationCondition);
+		PRINT_GREEN_DEC(" bEntryValidationCondition", bEntryValidationCondition);
 		PRINT_GREEN_DEC(" bTimeOut2", pin_properties -> bTimeOut2);
 
 		printf("\n");




More information about the Pcsclite-cvs-commit mailing list