[Pcsclite-cvs-commit] r2167 - trunk/PCSC/src

Ludovic Rousseau rousseau at costa.debian.org
Wed Sep 20 15:41:28 CEST 2006


Author: rousseau
Date: 2006-09-20 13:41:25 +0000 (Wed, 20 Sep 2006)
New Revision: 2167

Modified:
   trunk/PCSC/src/testpcsc.c
Log:
add a test for SCardGetAttrib(... SCARD_ATTR_VENDOR_IFD_VERSION...)


Modified: trunk/PCSC/src/testpcsc.c
===================================================================
--- trunk/PCSC/src/testpcsc.c	2006-09-20 13:40:19 UTC (rev 2166)
+++ trunk/PCSC/src/testpcsc.c	2006-09-20 13:41:25 UTC (rev 2167)
@@ -254,6 +254,13 @@
 		printf("\n");
 	}
 
+	printf("Testing SCardGetAttrib           : ");
+	dwAtrLen = sizeof(pbAtr);
+	rv = SCardGetAttrib(hCard, SCARD_ATTR_VENDOR_IFD_VERSION, pbAtr, &dwAtrLen);
+	printf("%s %s\n", pcsc_stringify_error(rv), rv != SCARD_S_SUCCESS ? "(don't panic)" : "");
+	if (rv == SCARD_S_SUCCESS)
+		printf("Vendor IFD version: 0x%08lX\n", ((DWORD *)pbAtr)[0]);
+
 	printf("Testing SCardSetAttrib           : ");
 	rv = SCardSetAttrib(hCard, SCARD_ATTR_ATR_STRING, (LPCBYTE)"", 1);
 	printf("%s %s\n", pcsc_stringify_error(rv), rv != SCARD_S_SUCCESS ? "(don't panic)" : "");




More information about the Pcsclite-cvs-commit mailing list