[Pcsclite-cvs-commit] r4896 - in /trunk/Drivers/ccid/src: ccid.h ifdhandler.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Sun Apr 25 19:05:47 UTC 2010
Author: rousseau
Date: Sun Apr 25 19:05:39 2010
New Revision: 4896
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4896
Log:
FEATURE_MCT_READER_DIRECT is also supported by the Kobil mIDentity visual
Modified:
trunk/Drivers/ccid/src/ccid.h
trunk/Drivers/ccid/src/ifdhandler.c
Modified: trunk/Drivers/ccid/src/ccid.h
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/ccid.h?rev=4896&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ccid.h (original)
+++ trunk/Drivers/ccid/src/ccid.h Sun Apr 25 19:05:39 2010
@@ -181,6 +181,7 @@
#define DELLSCRK 0x413C2101
#define DELLSK 0x413C2100
#define KOBIL_TRIBANK 0x0D463010
+#define KOBIL_MIDENTITY_VISUAL 0x0D460D46
#define VEGAALPHA 0x09820008
#define VENDOR_GEMALTO 0x08E6
Modified: trunk/Drivers/ccid/src/ifdhandler.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/ifdhandler.c?rev=4896&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ifdhandler.c (original)
+++ trunk/Drivers/ccid/src/ifdhandler.c Sun Apr 25 19:05:39 2010
@@ -1312,6 +1312,7 @@
{
unsigned int iBytesReturned = 0;
PCSC_TLV_STRUCTURE *pcsc_tlv = (PCSC_TLV_STRUCTURE *)RxBuffer;
+ int readerID = get_ccid_descriptor(reader_index) -> readerID;
/* we need room for up to five records */
if (RxLength < 5 * sizeof(PCSC_TLV_STRUCTURE))
@@ -1348,7 +1349,8 @@
pcsc_tlv++;
iBytesReturned += sizeof(PCSC_TLV_STRUCTURE);
- if (KOBIL_TRIBANK == get_ccid_descriptor(reader_index) -> readerID)
+ if ((KOBIL_TRIBANK == readerID)
+ || (KOBIL_MIDENTITY_VISUAL == readerID))
{
pcsc_tlv -> tag = FEATURE_MCT_READER_DIRECT;
pcsc_tlv -> length = 0x04; /* always 0x04 */
More information about the Pcsclite-cvs-commit
mailing list