From 51a9d208eebf1f0e61f5035e30c0bf50f843bd35 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Thu, 30 Aug 2007 17:53:19 -0700 Subject: [PATCH] crypt32: Implement CertDuplicateCertificateChain. --- dlls/crypt32/chain.c | 12 ++++++++++++ dlls/crypt32/crypt32.spec | 1 + 2 files changed, 13 insertions(+) diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c index 81dd6c4ea40..b8ce4763f69 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 7403ca2a691..e16b3ae67d3 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)