[Pcsclite-cvs-commit] CVS Drivers/ccid/src
CVS User rousseau
ludovic.rousseau@free.fr
Fri, 25 Feb 2005 10:25:44 -0700
Update of /cvsroot/pcsclite/Drivers/ccid/src
In directory haydn:/tmp/cvs-serv26493
Modified Files:
ifdhandler.c
Log Message:
IFDHSetProtocolParameters(): return immediately if the reader has the
bit CCID_CLASS_AUTO_PPS_PROP set since he will perform PPS and
SetParameters himself
--- /cvsroot/pcsclite/Drivers/ccid/src/ifdhandler.c 2005/02/25 17:19:00 1.56
+++ /cvsroot/pcsclite/Drivers/ccid/src/ifdhandler.c 2005/02/25 17:25:44 1.57
@@ -17,7 +17,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: ifdhandler.c,v 1.56 2005/02/25 17:19:00 rousseau Exp $ */
+/* $Id: ifdhandler.c,v 1.57 2005/02/25 17:25:44 rousseau Exp $ */
#include <stdio.h>
#include <string.h>
@@ -383,6 +383,11 @@
ccid_slot = get_ccid_slot(reader_index);
ccid_desc = get_ccid_descriptor(reader_index);
+ /* Do not send CCID command SetParameters or PPS to the CCID
+ * The CCID will do this himself */
+ if (ccid_desc->dwFeatures & CCID_CLASS_AUTO_PPS_PROP)
+ return IFD_SUCCESS;
+
/* Get ATR of the card */
ATR_InitFromArray(&atr, ccid_slot->pcATRBuffer, ccid_slot->nATRLength);