[Pcsclite-cvs-commit] r5724 - /trunk/Drivers/ccid/examples/scardcontrol.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Mon May 9 09:04:09 UTC 2011


Author: rousseau
Date: Mon May  9 09:04:07 2011
New Revision: 5724

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5724
Log:
Add table for bMsgIndex[1-3] and correctly set bMsgIndex2 and bMsgIndex3

Modified:
    trunk/Drivers/ccid/examples/scardcontrol.c

Modified: trunk/Drivers/ccid/examples/scardcontrol.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/examples/scardcontrol.c?rev=5724&op=diff
==============================================================================
--- trunk/Drivers/ccid/examples/scardcontrol.c (original)
+++ trunk/Drivers/ccid/examples/scardcontrol.c Mon May  9 09:04:07 2011
@@ -633,6 +633,11 @@
 	 * bConfirmPIN = 1, bNumberMessage = 2: "New Pin" "Confirm Pin"
 	 * bConfirmPIN = 0, bNumberMessage = 1: "New Pin"
 	 */
+	/* table for bMsgIndex[1-3]
+	 * 00: PIN insertion prompt        “ENTER SMARTCARD PIN”
+	 * 01: PIN Modification prompt     “ ENTER NEW PIN”
+	 * 02: NEW PIN Confirmation prompt “ CONFIRM NEW PIN”
+	 */
 	/* PC/SC v2.02.05 Part 10 PIN modification data structure */
 	pin_modify -> bTimerOut = 0x00;
 	pin_modify -> bTimerOut2 = 0x00;
@@ -648,8 +653,8 @@
 	pin_modify -> bNumberMessage = 0x03; /* see table above */
 	pin_modify -> wLangId = 0x0904;
 	pin_modify -> bMsgIndex1 = 0x00;
-	pin_modify -> bMsgIndex2 = 0x00;
-	pin_modify -> bMsgIndex3 = 0x00;
+	pin_modify -> bMsgIndex2 = 0x01;
+	pin_modify -> bMsgIndex3 = 0x02;
 	pin_modify -> bTeoPrologue[0] = 0x00;
 	pin_modify -> bTeoPrologue[1] = 0x00;
 	pin_modify -> bTeoPrologue[2] = 0x00;




More information about the Pcsclite-cvs-commit mailing list