stub implementations for CertCreateCRLContext and CertCloseStore

Mike McCormack mike at codeweavers.com
Mon Dec 8 03:47:42 CST 2003


ChangeLog:
* stub implementations for CertCreateCRLContext and CertCloseStore
-------------- next part --------------
Index: include/wincrypt.h
===================================================================
RCS file: /home/wine/wine/include/wincrypt.h,v
retrieving revision 1.15
diff -u -r1.15 wincrypt.h
--- include/wincrypt.h	2 Dec 2003 03:47:44 -0000	1.15
+++ include/wincrypt.h	8 Dec 2003 09:32:00 -0000
@@ -114,6 +114,34 @@
 } CERT_CONTEXT, *PCERT_CONTEXT;
 typedef const CERT_CONTEXT *PCCERT_CONTEXT;
 
+typedef struct _CRL_ENTRY {
+    CRYPT_INTEGER_BLOB SerialNumber;
+    FILETIME           RevocationDate;
+    DWORD              cExtension;
+    PCERT_EXTENSION    rgExtension;
+} CRL_ENTRY, *PCRL_ENTRY;
+
+typedef struct _CRL_INFO {
+    DWORD           dwVersion;
+    CRYPT_ALGORITHM_IDENTIFIER SignatureAlgorithm;
+    CERT_NAME_BLOB  Issuer;
+    FILETIME        ThisUpdate;
+    FILETIME        NextUpdate;
+    DWORD           cCRLEntry;
+    PCRL_ENTRY      rgCRLEntry;
+    DWORD           cExtension;
+    PCERT_EXTENSION rgExtension;
+} CRL_INFO, *PCRL_INFO;
+
+typedef struct _CRL_CONTEXT {
+    DWORD      dwCertEncodingType;
+    BYTE      *pbCrlEncoded;
+    DWORD      cbCrlEncoded;
+    PCRL_INFO  pCrlInfo;
+    HCERTSTORE hCertStore;
+} CRL_CONTEXT, *PCRL_CONTEXT;
+typedef const CRL_CONTEXT *PCCRL_CONTEXT;
+
 typedef struct _VTableProvStruc {
     DWORD    Version;
     FARPROC  pFuncVerifyImage;
Index: dlls/crypt32/crypt32.spec
===================================================================
RCS file: /home/wine/wine/dlls/crypt32/crypt32.spec,v
retrieving revision 1.14
diff -u -r1.14 crypt32.spec
--- dlls/crypt32/crypt32.spec	2 Dec 2003 03:47:44 -0000	1.14
+++ dlls/crypt32/crypt32.spec	8 Dec 2003 09:32:00 -0000
@@ -10,13 +10,13 @@
 @ stub CertAddSerializedElementToStore
 @ stub CertAddStoreToCollection
 @ stub CertAlgIdToOID
-@ stub CertCloseStore
+@ stdcall CertCloseStore(ptr long)
 @ stub CertCompareCertificate
 @ stub CertCompareCertificateName
 @ stub CertCompareIntegerBlob
 @ stub CertComparePublicKeyInfo
 @ stub CertControlStore
-@ stub CertCreateCRLContext
+@ stdcall CertCreateCRLContext(long ptr long)
 @ stub CertCreateCTLContext
 @ stub CertCreateCertificateChainEngine
 @ stub CertCreateCertificateContext
Index: dlls/crypt32/main.c
===================================================================
RCS file: /home/wine/wine/dlls/crypt32/main.c,v
retrieving revision 1.13
diff -u -r1.13 main.c
--- dlls/crypt32/main.c	2 Dec 2003 03:47:44 -0000	1.13
+++ dlls/crypt32/main.c	8 Dec 2003 09:32:00 -0000
@@ -137,3 +137,16 @@
           dwMsgAndCertEncodingType, dwSaveAs, dwSaveTo, pvSaveToPara, dwFlags);
     return TRUE;
 }
+
+PCCRL_CONTEXT WINAPI CertCreateCRLContext( DWORD dwCertEncodingType,
+  const BYTE* pbCrlEncoded, DWORD cbCrlEncoded)
+{
+    FIXME("%08lx %p %08lx\n", dwCertEncodingType, pbCrlEncoded, cbCrlEncoded);
+    return NULL;
+}
+
+BOOL WINAPI CertCloseStore( HCERTSTORE hCertStore, DWORD dwFlags )
+{
+    FIXME("%p %08lx\n", hCertStore, dwFlags );
+    return TRUE;
+}


More information about the wine-patches mailing list