[Fedora-directory-commits] coolkey/src/coolkey slot.cpp,1.7,1.8

Robert Relyea (rrelyea) fedora-directory-commits at redhat.com
Wed Jul 25 23:49:59 UTC 2007


Author: rrelyea

Update of /cvs/dirsec/coolkey/src/coolkey
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21854

Modified Files:
	slot.cpp 
Log Message:


Don't filter based on ATR at all. Let the application deal with which cards
it wants to work with



Index: slot.cpp
===================================================================
RCS file: /cvs/dirsec/coolkey/src/coolkey/slot.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- slot.cpp	16 Feb 2007 21:16:11 -0000	1.7
+++ slot.cpp	25 Jul 2007 23:49:56 -0000	1.8
@@ -564,15 +564,10 @@
         state = CARD_PRESENT;
     }
 
-    if ( CKYBuffer_DataIsEqual(&cardATR, ATR, sizeof (ATR)) || 
-		CKYBuffer_DataIsEqual(&cardATR, ATR1, sizeof(ATR1)) ||
-		CKYBuffer_DataIsEqual(&cardATR, ATR2, sizeof(ATR2)) ) {
-
-        if (Params::hasParam("noAppletOK"))
-        {      
-            state |=  APPLET_SELECTABLE;
-	    mCoolkey = 1;
-        }
+    if (Params::hasParam("noAppletOK"))
+    {      
+        state |=  APPLET_SELECTABLE;
+	mCoolkey = 1;
     }
 
     /* support CAC card. identify the card based on applets, not the ATRS */




More information about the 389-commits mailing list