crypt32(8/17): Implement CertDuplicateCertificateChain

Juan Lang juan.lang at gmail.com
Thu Aug 30 20:16:23 CDT 2007


--Juan
-------------- next part --------------
From cf192dfb1593aec9ade154e6b7156a93cf6ea028 Mon Sep 17 00:00:00 2001
From: Juan Lang <juan.lang at gmail.com>
Date: Thu, 30 Aug 2007 17:53:19 -0700
Subject: [PATCH] Implement CertDuplicateCertificateChain
---
 dlls/crypt32/chain.c      |   12 ++++++++++++
 dlls/crypt32/crypt32.spec |    1 +
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c
index 81dd6c4..b8ce476 100644
--- a/dlls/crypt32/chain.c
+++ b/dlls/crypt32/chain.c
@@ -482,6 +482,18 @@ static void CRYPT_FreeChainContext(PCert
     CryptMemFree(chain);
 }
 
+PCCERT_CHAIN_CONTEXT WINAPI CertDuplicateCertificateChain(
+ PCCERT_CHAIN_CONTEXT pChainContext)
+{
+    PCertificateChain chain = (PCertificateChain)pChainContext;
+
+    TRACE("(%p)\n", pChainContext);
+
+    if (chain)
+        InterlockedIncrement(&chain->ref);
+    return pChainContext;
+}
+
 void WINAPI CertFreeCertificateChain(PCCERT_CHAIN_CONTEXT pChainContext)
 {
     PCertificateChain chain = (PCertificateChain)pChainContext;
diff --git a/dlls/crypt32/crypt32.spec b/dlls/crypt32/crypt32.spec
index 7403ca2..e16b3ae 100644
--- a/dlls/crypt32/crypt32.spec
+++ b/dlls/crypt32/crypt32.spec
@@ -26,6 +26,7 @@
 @ stdcall CertDeleteCertificateFromStore(ptr)
 @ stdcall CertDuplicateCRLContext(ptr)
 @ stdcall CertDuplicateCTLContext(ptr)
+@ stdcall CertDuplicateCertificateChain(ptr)
 @ stdcall CertDuplicateCertificateContext(ptr)
 @ stdcall CertDuplicateStore(ptr)
 @ stdcall CertEnumCRLContextProperties(ptr long)
-- 
1.4.1


More information about the wine-patches mailing list