[Pcsclite-cvs-commit] r6245 - /trunk/Drivers/ccid/src/ifdhandler.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Fri Mar 23 10:02:04 UTC 2012
Author: rousseau
Date: Fri Mar 23 10:02:04 2012
New Revision: 6245
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6245
Log:
Add support of wIdVendor and wIdProduct properties
PCSCv2_PART10_PROPERTY_wIdVendor and PCSCv2_PART10_PROPERTY_wIdProduct
are new in PC/SC v2 part 10 version 2.02.09 (not yet released as of
today)
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=6245&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ifdhandler.c (original)
+++ trunk/Drivers/ccid/src/ifdhandler.c Fri Mar 23 10:02:04 2012
@@ -1517,6 +1517,24 @@
/* bit0: PPDU is supported over SCardControl using
* FEATURE_CCID_ESC_COMMAND */
+ /* wIdVendor */
+ {
+ int idVendor = ccid_descriptor -> readerID >> 16;
+ RxBuffer[p++] = PCSCv2_PART10_PROPERTY_wIdVendor;
+ RxBuffer[p++] = 2; /* length */
+ RxBuffer[p++] = idVendor & 0xFF;
+ RxBuffer[p++] = idVendor >> 8;
+ }
+
+ /* wIdProduct */
+ {
+ int idProduct = ccid_descriptor -> readerID & 0xFFFF;
+ RxBuffer[p++] = PCSCv2_PART10_PROPERTY_wIdProduct;
+ RxBuffer[p++] = 2; /* length */
+ RxBuffer[p++] = idProduct & 0xFF;
+ RxBuffer[p++] = idProduct >> 8;
+ }
+
*pdwBytesReturned = p;
return_value = IFD_SUCCESS;
}
More information about the Pcsclite-cvs-commit
mailing list