[Pcsclite-cvs-commit] PCSC/src testpcsc.c,1.9,1.10

rousseau@haydn.debian.org rousseau@haydn.debian.org


Update of /cvsroot/pcsclite/PCSC/src
In directory haydn:/tmp/cvs-serv31023

Modified Files:
	testpcsc.c 
Log Message:
test SCardGetAttrib()


Index: testpcsc.c
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/src/testpcsc.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- testpcsc.c	16 Apr 2004 16:11:15 -0000	1.9
+++ testpcsc.c	19 Apr 2004 15:18:25 -0000	1.10
@@ -199,6 +199,17 @@
 #endif
 	printf("%s\n", pcsc_stringify_error(rv));
 
+	printf("Testing SCardGetAttrib           : ");
+	dwAtrLen = sizeof(pbAtr);
+	rv = SCardGetAttrib(hCard, SCARD_ATTR_ATR_STRING, pbAtr, &dwAtrLen);
+	printf("%s\n", pcsc_stringify_error(rv));
+	if (rv == SCARD_S_SUCCESS)
+	{
+		for (i = 0; i < dwAtrLen; i++)
+			printf("%02X ", pbAtr[i]);
+		printf("\n");
+	}
+
 	printf("Testing SCardStatus              : ");
 
 	dwReaderLen = 50;