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

Ludovic Rousseau rousseau at costa.debian.org
Thu Nov 24 15:26:42 UTC 2005


Author: rousseau
Date: 2005-11-24 15:26:41 +0000 (Thu, 24 Nov 2005)
New Revision: 1742

Modified:
   trunk/Drivers/ccid/examples/scardcontrol.c
Log:
exit if the test applet is not found


Modified: trunk/Drivers/ccid/examples/scardcontrol.c
===================================================================
--- trunk/Drivers/ccid/examples/scardcontrol.c	2005-11-24 15:09:00 UTC (rev 1741)
+++ trunk/Drivers/ccid/examples/scardcontrol.c	2005-11-24 15:26:41 UTC (rev 1742)
@@ -277,6 +277,11 @@
 		printf(" %02X", bRecvBuffer[i]);
 	printf("\n");
 	PCSC_ERROR_EXIT(rv, "SCardTransmit")
+	if ((bRecvBuffer[0] != 0x90) || (bRecvBuffer[0] != 0x00))
+	{
+		printf("Error: test applet not found!\n");
+		goto end;
+	}
 
 #ifdef VERIFY_PIN
 	/* verify PIN */




More information about the Pcsclite-cvs-commit mailing list