[Pcsclite-cvs-commit] r5367 - /trunk/PCSC/src/winscard.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Thu Oct 28 07:57:19 UTC 2010
Author: rousseau
Date: Thu Oct 28 07:57:15 2010
New Revision: 5367
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5367
Log:
SCardConnect(): log the ATR in case of auto power on
The ATR may be different from the previous one if the card has a cold
and a warm ATR.
Modified:
trunk/PCSC/src/winscard.c
Modified: trunk/PCSC/src/winscard.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard.c?rev=5367&op=diff
==============================================================================
--- trunk/PCSC/src/winscard.c (original)
+++ trunk/PCSC/src/winscard.c Thu Oct 28 07:57:15 2010
@@ -302,7 +302,14 @@
rContext->readerState->cardAtrLength = dwAtrLen;
if (rv == IFD_SUCCESS)
+ {
readerState = SCARD_PRESENT | SCARD_POWERED | SCARD_NEGOTIABLE;
+
+ Log1(PCSC_LOG_DEBUG, "power up complete.");
+ LogXxd(PCSC_LOG_DEBUG, "Card ATR: ",
+ rContext->readerState->cardAtr,
+ rContext->readerState->cardAtrLength);
+ }
else
Log3(PCSC_LOG_ERROR, "Error powering up card: %d 0x%04X",
rv, rv);
More information about the Pcsclite-cvs-commit
mailing list