[Pcsclite-cvs-commit] r2197 - trunk/Drivers/ccid/src

Ludovic Rousseau rousseau at alioth.debian.org
Wed Nov 15 11:04:19 CET 2006


Author: rousseau
Date: 2006-11-15 11:04:18 +0100 (Wed, 15 Nov 2006)
New Revision: 2197

Modified:
   trunk/Drivers/ccid/src/ifdhandler.c
Log:
IFDHGetCapabilities(): add support of SCARD_ATTR_MAXINPUT to get the
maximal APDU size (dwMaxCCIDMessageLength -10)


Modified: trunk/Drivers/ccid/src/ifdhandler.c
===================================================================
--- trunk/Drivers/ccid/src/ifdhandler.c	2006-11-10 20:13:41 UTC (rev 2196)
+++ trunk/Drivers/ccid/src/ifdhandler.c	2006-11-15 10:04:18 UTC (rev 2197)
@@ -338,6 +338,12 @@
 				memcpy(Value, VENDOR_NAME, sizeof(VENDOR_NAME));
 			break;
 
+		case SCARD_ATTR_MAXINPUT:
+			*Length = sizeof(uint32_t);
+			if (Value)
+				*(uint32_t *)Value = get_ccid_descriptor(reader_index) -> dwMaxCCIDMessageLength -10;
+			break;
+
 		default:
 			return IFD_ERROR_TAG;
 	}




More information about the Pcsclite-cvs-commit mailing list