diff --git a/dlls/crypt32/ctl.c b/dlls/crypt32/ctl.c index 25b025bcbc..e7c048eec0 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 998f548b18..fbc413391d 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;