Juan Lang : crypt32: Add CTLs to the file store.

Alexandre Julliard julliard at winehq.org
Tue Sep 2 08:32:51 CDT 2008


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

Author: Juan Lang <juan.lang at gmail.com>
Date:   Fri Aug 29 07:33:03 2008 -0700

crypt32: Add CTLs to the file store.

---

 dlls/crypt32/filestore.c |   24 ++++++++++++++++++++++--
 1 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/dlls/crypt32/filestore.c b/dlls/crypt32/filestore.c
index 4c8c4a1..cfa29b3 100644
--- a/dlls/crypt32/filestore.c
+++ b/dlls/crypt32/filestore.c
@@ -88,6 +88,26 @@ static BOOL WINAPI CRYPT_FileDeleteCRL(HCERTSTORE hCertStore,
     return TRUE;
 }
 
+static BOOL WINAPI CRYPT_FileWriteCTL(HCERTSTORE hCertStore,
+ PCCTL_CONTEXT ctl, DWORD dwFlags)
+{
+    PWINE_FILESTOREINFO store = (PWINE_FILESTOREINFO)hCertStore;
+
+    TRACE("(%p, %p, %d)\n", hCertStore, ctl, dwFlags);
+    store->dirty = TRUE;
+    return TRUE;
+}
+
+static BOOL WINAPI CRYPT_FileDeleteCTL(HCERTSTORE hCertStore,
+ PCCTL_CONTEXT pCtlContext, DWORD dwFlags)
+{
+    PWINE_FILESTOREINFO store = (PWINE_FILESTOREINFO)hCertStore;
+
+    TRACE("(%p, %p, %08x)\n", hCertStore, pCtlContext, dwFlags);
+    store->dirty = TRUE;
+    return TRUE;
+}
+
 static BOOL CRYPT_ReadBlobFromFile(HANDLE file, PCERT_BLOB blob)
 {
     BOOL ret = TRUE;
@@ -187,8 +207,8 @@ static void *fileProvFuncs[] = {
     CRYPT_FileDeleteCRL,
     NULL, /* CERT_STORE_PROV_SET_CRL_PROPERTY_FUNC */
     NULL, /* CERT_STORE_PROV_READ_CTL_FUNC */
-    NULL, /* CERT_STORE_PROV_WRITE_CTL_FUNC */
-    NULL, /* CERT_STORE_PROV_DELETE_CTL_FUNC */
+    CRYPT_FileWriteCTL,
+    CRYPT_FileDeleteCTL,
     NULL, /* CERT_STORE_PROV_SET_CTL_PROPERTY_FUNC */
     CRYPT_FileControl,
 };




More information about the wine-cvs mailing list