Juan Lang : crypt32: Implement CertAddEncodedCTLToStore.

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


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

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

crypt32: Implement CertAddEncodedCTLToStore.

---

 dlls/crypt32/ctl.c   |   23 +++++++++++++++++++++++
 dlls/crypt32/store.c |   10 ----------
 2 files changed, 23 insertions(+), 10 deletions(-)

diff --git a/dlls/crypt32/ctl.c b/dlls/crypt32/ctl.c
index 1513287..25b025b 100644
--- a/dlls/crypt32/ctl.c
+++ b/dlls/crypt32/ctl.c
@@ -29,6 +29,29 @@
 
 WINE_DEFAULT_DEBUG_CHANNEL(crypt);
 
+BOOL WINAPI CertAddEncodedCTLToStore(HCERTSTORE hCertStore,
+ DWORD dwMsgAndCertEncodingType, const BYTE *pbCtlEncoded, DWORD cbCtlEncoded,
+ DWORD dwAddDisposition, PCCTL_CONTEXT *ppCtlContext)
+{
+    PCCTL_CONTEXT ctl = CertCreateCTLContext(dwMsgAndCertEncodingType,
+     pbCtlEncoded, cbCtlEncoded);
+    BOOL ret;
+
+    TRACE("(%p, %08x, %p, %d, %08x, %p)\n", hCertStore,
+     dwMsgAndCertEncodingType, pbCtlEncoded, cbCtlEncoded, dwAddDisposition,
+     ppCtlContext);
+
+    if (ctl)
+    {
+        ret = CertAddCTLContextToStore(hCertStore, ctl, dwAddDisposition,
+         ppCtlContext);
+        CertFreeCTLContext(ctl);
+    }
+    else
+        ret = FALSE;
+    return ret;
+}
+
 PCCTL_CONTEXT WINAPI CertCreateCTLContext(DWORD dwMsgAndCertEncodingType,
  const BYTE *pbCtlEncoded, DWORD cbCtlEncoded)
 {
diff --git a/dlls/crypt32/store.c b/dlls/crypt32/store.c
index ff95a97..803fd40 100644
--- a/dlls/crypt32/store.c
+++ b/dlls/crypt32/store.c
@@ -1043,16 +1043,6 @@ PCCRL_CONTEXT WINAPI CertEnumCRLsInStore(HCERTSTORE hCertStore,
     return ret;
 }
 
-BOOL WINAPI CertAddEncodedCTLToStore(HCERTSTORE hCertStore,
- DWORD dwMsgAndCertEncodingType, const BYTE *pbCtlEncoded, DWORD cbCtlEncoded,
- DWORD dwAddDisposition, PCCTL_CONTEXT *ppCtlContext)
-{
-    FIXME("(%p, %08x, %p, %d, %08x, %p): stub\n", hCertStore,
-     dwMsgAndCertEncodingType, pbCtlEncoded, cbCtlEncoded, dwAddDisposition,
-     ppCtlContext);
-    return FALSE;
-}
-
 BOOL WINAPI CertAddCTLContextToStore(HCERTSTORE hCertStore,
  PCCTL_CONTEXT pCtlContext, DWORD dwAddDisposition,
  PCCTL_CONTEXT* ppStoreContext)




More information about the wine-cvs mailing list