[Pcsclite-cvs-commit] r6739 - trunk/Drivers/ccid/src
ludovic.rousseau at free.fr
ludovic.rousseau at free.fr
Fri Aug 23 14:11:18 UTC 2013
Author: rousseau
Date: 2013-08-23 14:11:18 +0000 (Fri, 23 Aug 2013)
New Revision: 6739
Modified:
trunk/Drivers/ccid/src/ifdhandler.c
Log:
IFDHControl(): Add support of Windows value for CM_IOCTL_GET_FEATURE_REQUEST
Windows uses 0x313520 for SCARD_CTL_CODE(3400)
pcsc-lite uses 0x42000D48 for SCARD_CTL_CODE(3400)
RDP aplications (like rdesktop) will convert SCardControl() commands
from a Windows application (so using 0x313520) to pcsc-lite.
Modified: trunk/Drivers/ccid/src/ifdhandler.c
===================================================================
--- trunk/Drivers/ccid/src/ifdhandler.c 2013-08-23 08:43:37 UTC (rev 6738)
+++ trunk/Drivers/ccid/src/ifdhandler.c 2013-08-23 14:11:18 UTC (rev 6739)
@@ -1405,7 +1405,10 @@
/* Implement the PC/SC v2.02.07 Part 10 IOCTL mechanism */
/* Query for features */
- if (CM_IOCTL_GET_FEATURE_REQUEST == dwControlCode)
+ /* 0x313520 is the Windows value for SCARD_CTL_CODE(3400)
+ * This hack is needed for RDP applications */
+ if ((CM_IOCTL_GET_FEATURE_REQUEST == dwControlCode)
+ || (0x313520 == dwControlCode))
{
unsigned int iBytesReturned = 0;
PCSC_TLV_STRUCTURE *pcsc_tlv = (PCSC_TLV_STRUCTURE *)RxBuffer;
More information about the Pcsclite-cvs-commit
mailing list