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

Ludovic Rousseau rousseau at costa.debian.org
Thu Nov 24 16:14:49 UTC 2005


Author: rousseau
Date: 2005-11-24 16:14:48 +0000 (Thu, 24 Nov 2005)
New Revision: 1750

Modified:
   trunk/Drivers/ccid/examples/scardcontrol.c
Log:
in Modify PIN command we need to read 3 lines from the keyboard (old,
new and confirm PINs)


Modified: trunk/Drivers/ccid/examples/scardcontrol.c
===================================================================
--- trunk/Drivers/ccid/examples/scardcontrol.c	2005-11-24 16:12:21 UTC (rev 1749)
+++ trunk/Drivers/ccid/examples/scardcontrol.c	2005-11-24 16:14:48 UTC (rev 1750)
@@ -488,9 +488,18 @@
 		{
 			/* read the fake digits */
 			char in[40];	/* 4 digits + \n + \0 */
+
+			/* old PIN */
 			(void)fgets(in, sizeof(in), stdin);
+			printf("keyboard sent: %s", in);
 
+			/* new PIN */
+			(void)fgets(in, sizeof(in), stdin);
 			printf("keyboard sent: %s", in);
+
+			/* confirmation PIN */
+			(void)fgets(in, sizeof(in), stdin);
+			printf("keyboard sent: %s", in);
 		}
 	}
 




More information about the Pcsclite-cvs-commit mailing list