Blame SOURCES/coolkey-pcsc-lite-fix.patch

a2763b
diff -up ./src/coolkey/slot.cpp.reader-state-fix ./src/coolkey/slot.cpp
a2763b
--- ./src/coolkey/slot.cpp.reader-state-fix	2010-09-08 13:25:14.479109000 -0700
a2763b
+++ ./src/coolkey/slot.cpp	2010-09-08 13:25:14.506109000 -0700
a2763b
@@ -2185,6 +2185,7 @@ Slot::readCACCertificateFirst(CKYBuffer 
a2763b
 {
a2763b
     CKYStatus status;
a2763b
     CKYISOStatus apduRC;
a2763b
+    *nextSize = 0;
a2763b
 
a2763b
     if (mOldCAC) {
a2763b
 	/* get the first 100 bytes of the cert */
a2763b
diff -up ./src/libckyapplet/cky_card.c.reader-state-fix ./src/libckyapplet/cky_card.c
a2763b
--- ./src/libckyapplet/cky_card.c.reader-state-fix	2010-09-08 14:05:10.859321000 -0700
a2763b
+++ ./src/libckyapplet/cky_card.c	2010-09-08 14:05:42.792257000 -0700
a2763b
@@ -27,7 +27,6 @@
a2763b
 
a2763b
 #ifndef WINAPI
a2763b
 #define WINAPI
a2763b
-typedef SCARD_READERSTATE *LPSCARD_READERSTATE;
a2763b
 #endif
a2763b
 
a2763b
 #ifndef SCARD_E_NO_READERS_AVAILABLE
a2763b
diff -up ./src/libckyapplet/cky_card.h.reader-state-fix ./src/libckyapplet/cky_card.h
a2763b
--- ./src/libckyapplet/cky_card.h.reader-state-fix	2006-06-09 11:44:17.000000000 -0700
a2763b
+++ ./src/libckyapplet/cky_card.h	2010-09-08 13:25:14.518109000 -0700
a2763b
@@ -41,23 +41,23 @@ CKYLIST_DECLARE(CKYReaderName, char *)
a2763b
 CKYLIST_DECLARE(CKYCardConnection, CKYCardConnection *)
a2763b
 
a2763b
 CKY_BEGIN_PROTOS
a2763b
-void CKYReader_Init(SCARD_READERSTATE_A *reader);
a2763b
-void CKYReader_FreeData(SCARD_READERSTATE_A *reader);
a2763b
+void CKYReader_Init(SCARD_READERSTATE *reader);
a2763b
+void CKYReader_FreeData(SCARD_READERSTATE *reader);
a2763b
 
a2763b
 /*
a2763b
- * "Accessors": for SCARD_READERSTATE_A structure as a class.
a2763b
- * These functions take an SCARD_READERSTATE_A which can also be referenced
a2763b
+ * "Accessors": for SCARD_READERSTATE structure as a class.
a2763b
+ * These functions take an SCARD_READERSTATE which can also be referenced
a2763b
  * directly.
a2763b
  */
a2763b
-CKYStatus CKYReader_SetReaderName(SCARD_READERSTATE_A *reader, const char *name);
a2763b
-const char *CKYReader_GetReaderName(const SCARD_READERSTATE_A *reader);
a2763b
-CKYStatus CKYReader_SetKnownState(SCARD_READERSTATE_A *reader, 
a2763b
+CKYStatus CKYReader_SetReaderName(SCARD_READERSTATE *reader, const char *name);
a2763b
+const char *CKYReader_GetReaderName(const SCARD_READERSTATE *reader);
a2763b
+CKYStatus CKYReader_SetKnownState(SCARD_READERSTATE *reader, 
a2763b
 						unsigned long state);
a2763b
-unsigned long CKYReader_GetKnownState(const SCARD_READERSTATE_A *reader);
a2763b
-unsigned long CKYReader_GetEventState(const SCARD_READERSTATE_A *reader);
a2763b
-CKYStatus CKYReader_GetATR(const SCARD_READERSTATE_A *reader, CKYBuffer *buf);
a2763b
+unsigned long CKYReader_GetKnownState(const SCARD_READERSTATE *reader);
a2763b
+unsigned long CKYReader_GetEventState(const SCARD_READERSTATE *reader);
a2763b
+CKYStatus CKYReader_GetATR(const SCARD_READERSTATE *reader, CKYBuffer *buf);
a2763b
 /* create an array of READERSTATEs from a LIST of Readers */
a2763b
-SCARD_READERSTATE_A *CKYReader_CreateArray(const CKYReaderNameList readerNames, 
a2763b
+SCARD_READERSTATE *CKYReader_CreateArray(const CKYReaderNameList readerNames, 
a2763b
 					  unsigned long *readerCount);
a2763b
 /* frees the reader, then the full array */
a2763b
 void CKYReader_DestroyArray(SCARD_READERSTATE *reader, unsigned long count);
a2763b
@@ -88,7 +88,7 @@ CKYStatus CKYCardContext_FindReadersByAT
a2763b
 				const CKYBuffer *targetATR);
a2763b
 /* return if any of the readers in our array has changed in status */
a2763b
 CKYStatus CKYCardContext_WaitForStatusChange(CKYCardContext *context,
a2763b
-				SCARD_READERSTATE_A *readers,
a2763b
+				SCARD_READERSTATE *readers,
a2763b
 				unsigned long readerCount,
a2763b
 				unsigned long timeout);
a2763b
 /* cancel any current operation (such as wait for status change) on this