Juan Lang : crypt32: Implement CertDuplicateCertificateChain.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Aug 31 14:01:20 CDT 2007
Module: wine
Branch: master
Commit: 51a9d208eebf1f0e61f5035e30c0bf50f843bd35
URL: http://source.winehq.org/git/wine.git/?a=commit;h=51a9d208eebf1f0e61f5035e30c0bf50f843bd35
Author: Juan Lang <juan.lang at gmail.com>
Date: Thu Aug 30 17:53:19 2007 -0700
crypt32: 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(PCertificateChain chain)
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)
More information about the wine-cvs
mailing list