Stub implementations for CertCreateCRLContext and CertCloseStore.
diff --git a/dlls/crypt32/crypt32.spec b/dlls/crypt32/crypt32.spec
index df1d756..98aa8e4 100644
--- a/dlls/crypt32/crypt32.spec
+++ b/dlls/crypt32/crypt32.spec
@@ -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
diff --git a/dlls/crypt32/main.c b/dlls/crypt32/main.c
index b16f42f..1a5f5cc 100644
--- a/dlls/crypt32/main.c
+++ b/dlls/crypt32/main.c
@@ -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;
+}
diff --git a/include/wincrypt.h b/include/wincrypt.h
index 0586cc1..76220f9 100644
--- a/include/wincrypt.h
+++ b/include/wincrypt.h
@@ -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;