Juan Lang : crypt32: Add stubs for CertDuplicateCRLContext and CertDuplicateCTLContext.

Alexandre Julliard julliard at wine.codeweavers.com
Thu May 18 03:57:09 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 0379d421e096c8a14e823c448f54df4ca06b3455
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=0379d421e096c8a14e823c448f54df4ca06b3455

Author: Juan Lang <juan_lang at yahoo.com>
Date:   Wed May 17 21:49:27 2006 -0700

crypt32: Add stubs for CertDuplicateCRLContext and CertDuplicateCTLContext.

---

 dlls/crypt32/crypt32.spec |    4 ++--
 dlls/crypt32/store.c      |   17 +++++++++++++++++
 2 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/dlls/crypt32/crypt32.spec b/dlls/crypt32/crypt32.spec
index 73744ed..4692e54 100644
--- a/dlls/crypt32/crypt32.spec
+++ b/dlls/crypt32/crypt32.spec
@@ -24,8 +24,8 @@
 @ stdcall CertDeleteCRLFromStore(ptr)
 @ stdcall CertDeleteCTLFromStore(ptr)
 @ stdcall CertDeleteCertificateFromStore(ptr)
-@ stub CertDuplicateCRLContext
-@ stub CertDuplicateCTLContext
+@ stdcall CertDuplicateCRLContext(ptr)
+@ stdcall CertDuplicateCTLContext(ptr)
 @ stdcall CertDuplicateCertificateContext(ptr)
 @ stdcall CertDuplicateStore(ptr)
 @ stub CertEnumCRLContextProperties
diff --git a/dlls/crypt32/store.c b/dlls/crypt32/store.c
index fa86abc..c197553 100644
--- a/dlls/crypt32/store.c
+++ b/dlls/crypt32/store.c
@@ -54,6 +54,7 @@ typedef BOOL (WINAPI *AddContextToStoreF
 typedef BOOL (WINAPI *AddEncodedContextToStoreFunc)(HCERTSTORE hCertStore,
  DWORD dwCertEncodingType, const BYTE *pbEncoded, DWORD cbEncoded,
  DWORD dwAddDisposition, const void **ppContext);
+typedef const void *(WINAPI *DuplicateContextFunc)(const void *context);
 typedef const void *(WINAPI *EnumContextsInStoreFunc)(HCERTSTORE hCertStore,
  const void *pPrevContext);
 typedef BOOL (WINAPI *GetContextPropertyFunc)(const void *context,
@@ -71,6 +72,7 @@ typedef struct _WINE_CONTEXT_INTERFACE
     CreateContextFunc            create;
     AddContextToStoreFunc        addContextToStore;
     AddEncodedContextToStoreFunc addEncodedToStore;
+    DuplicateContextFunc         duplicate;
     EnumContextsInStoreFunc      enumContextsInStore;
     GetContextPropertyFunc       getProp;
     SetContextPropertyFunc       setProp;
@@ -83,6 +85,7 @@ static const WINE_CONTEXT_INTERFACE gCer
     (CreateContextFunc)CertCreateCertificateContext,
     (AddContextToStoreFunc)CertAddCertificateContextToStore,
     (AddEncodedContextToStoreFunc)CertAddEncodedCertificateToStore,
+    (DuplicateContextFunc)CertDuplicateCertificateContext,
     (EnumContextsInStoreFunc)CertEnumCertificatesInStore,
     (GetContextPropertyFunc)CertGetCertificateContextProperty,
     (SetContextPropertyFunc)CertSetCertificateContextProperty,
@@ -95,6 +98,7 @@ static const WINE_CONTEXT_INTERFACE gCRL
     (CreateContextFunc)CertCreateCRLContext,
     (AddContextToStoreFunc)CertAddCRLContextToStore,
     (AddEncodedContextToStoreFunc)CertAddEncodedCRLToStore,
+    (DuplicateContextFunc)CertDuplicateCRLContext,
     (EnumContextsInStoreFunc)CertEnumCRLsInStore,
     (GetContextPropertyFunc)CertGetCRLContextProperty,
     (SetContextPropertyFunc)CertSetCRLContextProperty,
@@ -107,6 +111,7 @@ static const WINE_CONTEXT_INTERFACE gCTL
     (CreateContextFunc)CertCreateCTLContext,
     (AddContextToStoreFunc)CertAddCTLContextToStore,
     (AddEncodedContextToStoreFunc)CertAddEncodedCTLToStore,
+    (DuplicateContextFunc)CertDuplicateCTLContext,
     (EnumContextsInStoreFunc)CertEnumCTLsInStore,
     (GetContextPropertyFunc)CertGetCTLContextProperty,
     (SetContextPropertyFunc)CertSetCTLContextProperty,
@@ -2355,6 +2360,12 @@ BOOL WINAPI CertAddCRLContextToStore( HC
     return TRUE;
 }
 
+PCCRL_CONTEXT WINAPI CertDuplicateCRLContext(PCCRL_CONTEXT pCrlContext)
+{
+    FIXME("(%p): stub\n", pCrlContext);
+    return pCrlContext;
+}
+
 BOOL WINAPI CertFreeCRLContext( PCCRL_CONTEXT pCrlContext)
 {
     FIXME("%p\n", pCrlContext );
@@ -2402,6 +2413,12 @@ BOOL WINAPI CertAddCTLContextToStore(HCE
     return TRUE;
 }
 
+PCCTL_CONTEXT WINAPI CertDuplicateCTLContext(PCCTL_CONTEXT pCtlContext)
+{
+    FIXME("(%p): stub\n", pCtlContext );
+    return pCtlContext;
+}
+
 BOOL WINAPI CertFreeCTLContext(PCCTL_CONTEXT pCtlContext)
 {
     FIXME("(%p): stub\n", pCtlContext );




More information about the wine-cvs mailing list