[Pcsclite-cvs-commit] r4443 - /trunk/PCSC/src/winscard.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Thu Oct 8 07:53:27 UTC 2009
Author: rousseau
Date: Thu Oct 8 07:53:27 2009
New Revision: 4443
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4443
Log:
SCardReconnect(): log the selected protocol (as done in SCardConnect())
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=4443&op=diff
==============================================================================
--- trunk/PCSC/src/winscard.c (original)
+++ trunk/PCSC/src/winscard.c Thu Oct 8 07:53:27 2009
@@ -754,6 +754,19 @@
*pdwActiveProtocol = rContext->readerState->cardProtocol;
+ if (dwShareMode != SCARD_SHARE_DIRECT)
+ {
+ if ((*pdwActiveProtocol != SCARD_PROTOCOL_T0)
+ && (*pdwActiveProtocol != SCARD_PROTOCOL_T1))
+ Log2(PCSC_LOG_ERROR, "Active Protocol: unknown %d",
+ *pdwActiveProtocol);
+ else
+ Log2(PCSC_LOG_DEBUG, "Active Protocol: T=%d",
+ (*pdwActiveProtocol == SCARD_PROTOCOL_T0) ? 0 : 1);
+ }
+ else
+ Log1(PCSC_LOG_DEBUG, "Direct access: no protocol selected");
+
if (dwShareMode == SCARD_SHARE_EXCLUSIVE)
{
if (rContext->dwContexts == SCARD_EXCLUSIVE_CONTEXT)
More information about the Pcsclite-cvs-commit
mailing list