Module: wine Branch: master Commit: 7572f61f382f0b9f879cb5951b4c21e4dc79152f URL: http://source.winehq.org/git/wine.git/?a=commit;h=7572f61f382f0b9f879cb5951b...
Author: Juan Lang juan.lang@gmail.com Date: Fri Aug 29 07:34:07 2008 -0700
crypt32: Implement CertEnumCTLsInStore.
---
dlls/crypt32/ctl.c | 16 ++++++++++++++++ dlls/crypt32/store.c | 7 ------- 2 files changed, 16 insertions(+), 7 deletions(-)
diff --git a/dlls/crypt32/ctl.c b/dlls/crypt32/ctl.c index 25b025b..e7c048e 100644 --- a/dlls/crypt32/ctl.c +++ b/dlls/crypt32/ctl.c @@ -52,6 +52,22 @@ BOOL WINAPI CertAddEncodedCTLToStore(HCERTSTORE hCertStore, return ret; }
+PCCTL_CONTEXT WINAPI CertEnumCTLsInStore(HCERTSTORE hCertStore, + PCCTL_CONTEXT pPrev) +{ + WINECRYPT_CERTSTORE *hcs = (WINECRYPT_CERTSTORE *)hCertStore; + PCCTL_CONTEXT ret; + + TRACE("(%p, %p)\n", hCertStore, pPrev); + if (!hCertStore) + ret = NULL; + else if (hcs->dwMagic != WINE_CRYPTCERTSTORE_MAGIC) + ret = NULL; + else + ret = (PCCTL_CONTEXT)hcs->ctls.enumContext(hcs, (void *)pPrev); + return ret; +} + PCCTL_CONTEXT WINAPI CertCreateCTLContext(DWORD dwMsgAndCertEncodingType, const BYTE *pbCtlEncoded, DWORD cbCtlEncoded) { diff --git a/dlls/crypt32/store.c b/dlls/crypt32/store.c index 998f548..fbc4133 100644 --- a/dlls/crypt32/store.c +++ b/dlls/crypt32/store.c @@ -1106,13 +1106,6 @@ BOOL WINAPI CertDeleteCTLFromStore(PCCTL_CONTEXT pCtlContext) return TRUE; }
-PCCTL_CONTEXT WINAPI CertEnumCTLsInStore(HCERTSTORE hCertStore, - PCCTL_CONTEXT pPrev) -{ - FIXME("(%p, %p): stub\n", hCertStore, pPrev); - return NULL; -} - HCERTSTORE WINAPI CertDuplicateStore(HCERTSTORE hCertStore) { WINECRYPT_CERTSTORE *hcs = (WINECRYPT_CERTSTORE *)hCertStore;