crypt32: stub implementation of CertGetCertificateChain

Mounir IDRASSI mounir.idrassi at idrix.fr
Sun May 13 19:23:50 CDT 2007


Hi,
This patch adds a stub implementation for CertGetCertificateChain needed
by a third party certificate management tool we are currently testing.

Mounir IDRASSI
IDRIX - Cryptography and IT Security Experts
http://www.idrix.fr

-------------- next part --------------
>From bd6a7672e1f1e43516afd4ef99d15e6aae6cf35a Mon Sep 17 00:00:00 2001
From: Mounir IDRASSI <mounir.idrassi at idrix.fr>
Date: Mon, 14 May 2007 02:15:19 +0200
Subject: crypt32: stub implementation of CertGetCertificateChain

---
 dlls/crypt32/cert.c       |   14 ++++++++++++++
 dlls/crypt32/crypt32.spec |    2 +-
 2 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/dlls/crypt32/cert.c b/dlls/crypt32/cert.c
index 3912447..bae275e 100644
--- a/dlls/crypt32/cert.c
+++ b/dlls/crypt32/cert.c
@@ -2275,3 +2275,17 @@ PCCERT_CONTEXT WINAPI CertCreateSelfSignCertificate(HCRYPTPROV hProv,
         CryptReleaseContext(hProv, 0);
     return context;
 }
+
+BOOL WINAPI CertGetCertificateChain(HCERTCHAINENGINE hChainEngine,
+    PCCERT_CONTEXT pCertContext, LPFILETIME pTime, HCERTSTORE hAdditionalStore,
+    PCERT_CHAIN_PARA pChainPara, DWORD dwFlags, LPVOID pvReserved,
+    PCCERT_CHAIN_CONTEXT* ppChainContext)
+{
+    FIXME(" %p %p %p %p %p 0x%08X %p %p - stub\n",hChainEngine, pCertContext,
+     pTime, hAdditionalStore, pChainPara, dwFlags, pvReserved, ppChainContext);
+    
+    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+    return FALSE;
+}
+
+
diff --git a/dlls/crypt32/crypt32.spec b/dlls/crypt32/crypt32.spec
index d8bb091..a3e3039 100644
--- a/dlls/crypt32/crypt32.spec
+++ b/dlls/crypt32/crypt32.spec
@@ -51,7 +51,7 @@
 @ stdcall CertGetCRLContextProperty(ptr long ptr ptr)
 @ stdcall CertGetCRLFromStore(ptr ptr ptr ptr)
 @ stdcall CertGetCTLContextProperty(ptr long ptr ptr)
-@ stub CertGetCertificateChain
+@ stdcall CertGetCertificateChain(ptr ptr ptr ptr ptr long ptr ptr)
 @ stdcall CertGetCertificateContextProperty(ptr long ptr ptr)
 @ stdcall CertGetEnhancedKeyUsage(ptr long ptr ptr)
 @ stub CertGetIntendedKeyUsage
-- 
1.4.4.2



More information about the wine-patches mailing list