[Pcsclite-cvs-commit] r5495 - /trunk/Drivers/ccid/src/ifdhandler.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Fri Jan 7 15:15:12 UTC 2011
Author: rousseau
Date: Fri Jan 7 15:15:09 2011
New Revision: 5495
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5495
Log:
IFDHGetCapabilities(): multi slot readers does not (yet) support
TAG_IFD_POLLING_THREAD_WITH_TIMEOUT
The polling function will return for a event in any slot not just the
slot we are interested in. And the event will be lost for the real slot.
Modified:
trunk/Drivers/ccid/src/ifdhandler.c
Modified: trunk/Drivers/ccid/src/ifdhandler.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/ifdhandler.c?rev=5495&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ifdhandler.c (original)
+++ trunk/Drivers/ccid/src/ifdhandler.c Fri Jan 7 15:15:09 2011
@@ -538,6 +538,11 @@
*Length = 0;
ccid_desc = get_ccid_descriptor(reader_index);
+
+ /* more than one slot is not supported */
+ if (ccid_desc -> bMaxSlotIndex > 0)
+ break;
+
/* CCID and not ICCD */
if ((PROTOCOL_CCID == ccid_desc -> bInterfaceProtocol)
/* 3 end points */
More information about the Pcsclite-cvs-commit
mailing list