[Pcsclite-cvs-commit] r4924 - /trunk/Drivers/ccid/src/ifdhandler.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Fri May 7 12:21:37 UTC 2010
Author: rousseau
Date: Fri May 7 12:21:30 2010
New Revision: 4924
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4924
Log:
IFDHControl(): add support of IOCTL_FEATURE_GET_TLV_PROPERTIES
bMinPINSize & bMaxPINSize for Gemalto Pinpad V1
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=4924&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ifdhandler.c (original)
+++ trunk/Drivers/ccid/src/ifdhandler.c Fri May 7 12:21:30 2010
@@ -1426,6 +1426,20 @@
memcpy(&RxBuffer[p], firmware, len);
p += len;
}
+ }
+
+ /* Gemalto PC Pinpad V1 */
+ if (GEMPCPINPAD == ccid_descriptor -> readerID)
+ {
+ /* bMinPINSize */
+ RxBuffer[p++] = PCSCv2_PART10_PROPERTY_bMinPINSize;
+ RxBuffer[p++] = 1;
+ RxBuffer[p++] = 4;
+
+ /* bMaxPINSize */
+ RxBuffer[p++] = PCSCv2_PART10_PROPERTY_bMaxPINSize;
+ RxBuffer[p++] = 1;
+ RxBuffer[p++] = 8;
}
*pdwBytesReturned = p;
More information about the Pcsclite-cvs-commit
mailing list