[Pcsclite-cvs-commit] r4498 - /trunk/Drivers/ccid/src/ifdhandler.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Sun Oct 18 09:58:52 UTC 2009


Author: rousseau
Date: Sun Oct 18 09:58:52 2009
New Revision: 4498

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4498
Log:
FDHGetCapabilities(): add support of SCARD_ATTR_ICC_INTERFACE_STATUS

Required to support the Windows middleware that's used for French
Healthcar cards.

Thanks to David Markowitz for the patch.

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=4498&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ifdhandler.c (original)
+++ trunk/Drivers/ccid/src/ifdhandler.c Sun Oct 18 09:58:52 2009
@@ -379,6 +379,16 @@
 			}
 			else
 				return_value = IFD_ERROR_INSUFFICIENT_BUFFER;
+			break;
+
+		case SCARD_ATTR_ICC_INTERFACE_STATUS:
+			*Length = 1;
+			if (IFD_ICC_PRESENT == IFDHICCPresence(Lun))
+				/* nonzero if contact is active */
+				*Value = 1;
+			else
+				/* smart card electrical contact is not active */
+				*Value = 0;
 			break;
 
 #ifdef HAVE_PTHREAD




More information about the Pcsclite-cvs-commit mailing list