Juan Lang : crypt32: Add an implementation of CertControlStore for memory stores.

Alexandre Julliard julliard at winehq.org
Wed Nov 4 10:26:26 CST 2009


Module: wine
Branch: master
Commit: 33c70d35dd9e7c3e8bd257dd9824015bb7f117fa
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=33c70d35dd9e7c3e8bd257dd9824015bb7f117fa

Author: Juan Lang <juan.lang at gmail.com>
Date:   Tue Nov  3 10:59:50 2009 -0800

crypt32: Add an implementation of CertControlStore for memory stores.

---

 dlls/crypt32/store.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/dlls/crypt32/store.c b/dlls/crypt32/store.c
index e1cce40..69578f2 100644
--- a/dlls/crypt32/store.c
+++ b/dlls/crypt32/store.c
@@ -283,6 +283,13 @@ static BOOL CRYPT_MemDeleteCtl(PWINECRYPT_CERTSTORE store, void *pCtlContext)
     return ret;
 }
 
+static BOOL WINAPI CRYPT_MemControl(HCERTSTORE hCertStore, DWORD dwFlags,
+ DWORD dwCtrlType, void const *pvCtrlPara)
+{
+    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+    return FALSE;
+}
+
 static void WINAPI CRYPT_MemCloseStore(HCERTSTORE hCertStore, DWORD dwFlags)
 {
     WINE_MEMSTORE *store = hCertStore;
@@ -326,7 +333,7 @@ static WINECRYPT_CERTSTORE *CRYPT_MemOpenStore(HCRYPTPROV hCryptProv,
             store->hdr.ctls.addContext     = CRYPT_MemAddCtl;
             store->hdr.ctls.enumContext    = CRYPT_MemEnumCtl;
             store->hdr.ctls.deleteContext  = CRYPT_MemDeleteCtl;
-            store->hdr.control             = NULL;
+            store->hdr.control             = CRYPT_MemControl;
             store->certs = ContextList_Create(pCertInterface,
              sizeof(CERT_CONTEXT));
             store->crls = ContextList_Create(pCRLInterface,




More information about the wine-cvs mailing list