Commit 51a9d208 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Implement CertDuplicateCertificateChain.

parent 3ef4c7e1
...@@ -482,6 +482,18 @@ static void CRYPT_FreeChainContext(PCertificateChain chain) ...@@ -482,6 +482,18 @@ static void CRYPT_FreeChainContext(PCertificateChain chain)
CryptMemFree(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) void WINAPI CertFreeCertificateChain(PCCERT_CHAIN_CONTEXT pChainContext)
{ {
PCertificateChain chain = (PCertificateChain)pChainContext; PCertificateChain chain = (PCertificateChain)pChainContext;
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
@ stdcall CertDeleteCertificateFromStore(ptr) @ stdcall CertDeleteCertificateFromStore(ptr)
@ stdcall CertDuplicateCRLContext(ptr) @ stdcall CertDuplicateCRLContext(ptr)
@ stdcall CertDuplicateCTLContext(ptr) @ stdcall CertDuplicateCTLContext(ptr)
@ stdcall CertDuplicateCertificateChain(ptr)
@ stdcall CertDuplicateCertificateContext(ptr) @ stdcall CertDuplicateCertificateContext(ptr)
@ stdcall CertDuplicateStore(ptr) @ stdcall CertDuplicateStore(ptr)
@ stdcall CertEnumCRLContextProperties(ptr long) @ stdcall CertEnumCRLContextProperties(ptr long)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment