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

Ludovic Rousseau rousseau at costa.debian.org
Wed Nov 16 09:18:25 UTC 2005


Author: rousseau
Date: 2005-11-16 09:18:24 +0000 (Wed, 16 Nov 2005)
New Revision: 1716

Modified:
   trunk/Drivers/ccid/examples/scardcontrol.c
Log:
Modify PIN: bInsertionOffsetOld and bInsertionOffsetNew starts from the
APDU data (5th byte) and not the APDU start (first byte)


Modified: trunk/Drivers/ccid/examples/scardcontrol.c
===================================================================
--- trunk/Drivers/ccid/examples/scardcontrol.c	2005-11-16 09:14:17 UTC (rev 1715)
+++ trunk/Drivers/ccid/examples/scardcontrol.c	2005-11-16 09:18:24 UTC (rev 1716)
@@ -416,8 +416,8 @@
 	pin_modify -> bmFormatString = 0x82;
 	pin_modify -> bmPINBlockString = 0x04;
 	pin_modify -> bmPINLengthFormat = 0x00;
-	pin_modify -> bInsertionOffsetOld = 0x05; 	/* offset from APDU start */
-	pin_modify -> bInsertionOffsetNew = 0x0D;	/* offset from APDU start */
+	pin_modify -> bInsertionOffsetOld = 0x00; 	/* offset from APDU start */
+	pin_modify -> bInsertionOffsetNew = 0x08;	/* offset from APDU start */
 	pin_modify -> wPINMaxExtraDigit = HOST_TO_CCID_16(0x0408);	/* Min Max */
 	pin_modify -> bConfirmPIN = 0x03;	/* b0 set = confirmation requested */
 									/* b1 set = current PIN entry requested */




More information about the Pcsclite-cvs-commit mailing list