[Pcsclite-cvs-commit] CVS PCSC/src
CVS User rousseau
ludovic.rousseau@free.fr
Wed, 01 Sep 2004 02:13:07 -0600
Update of /cvsroot/pcsclite/PCSC/src
In directory haydn:/tmp/cvs-serv12688
Modified Files:
testpcsc.c
Log Message:
test SCardGetAttrib() with a NULL pbAttr paraleter
--- /cvsroot/pcsclite/PCSC/src/testpcsc.c 2004/08/06 12:12:20 1.20
+++ /cvsroot/pcsclite/PCSC/src/testpcsc.c 2004/09/01 08:13:06 1.21
@@ -6,7 +6,7 @@
* Copyright (C) 1999
* David Corcoran <corcoran@linuxnet.com>
*
- * $Id: testpcsc.c,v 1.20 2004/08/06 12:12:20 rousseau Exp $
+ * $Id: testpcsc.c,v 1.21 2004/09/01 08:13:06 rousseau Exp $
*/
#include "config.h"
@@ -184,6 +184,12 @@
printf("%s %s\n", pcsc_stringify_error(rv), rv != SCARD_S_SUCCESS ? "(don't panic)" : "");
printf("Testing SCardGetAttrib : ");
+ rv = SCardGetAttrib(hCard, SCARD_ATTR_ATR_STRING, NULL, &dwAtrLen);
+ printf("%s %s\n", pcsc_stringify_error(rv), rv != SCARD_S_SUCCESS ? "(don't panic)" : "");
+ if (rv == SCARD_S_SUCCESS)
+ printf("ATR length: %ld\n", dwAtrLen);
+
+ printf("Testing SCardGetAttrib : ");
dwAtrLen = sizeof(pbAtr);
rv = SCardGetAttrib(hCard, SCARD_ATTR_ATR_STRING, pbAtr, &dwAtrLen);
printf("%s %s\n", pcsc_stringify_error(rv), rv != SCARD_S_SUCCESS ? "(don't panic)" : "");