From 1550f5ef1394a50bb3316b3435b75f5498c0a5c6 Mon Sep 17 00:00:00 2001 From: Stefan Leichter Date: Mon, 9 Aug 2004 22:55:35 +0000 Subject: [PATCH] Added stub for CertFindCertificateInStore. --- dlls/crypt32/cert.c | 10 ++++++++++ dlls/crypt32/crypt32.spec | 2 +- include/winerror.h | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/dlls/crypt32/cert.c b/dlls/crypt32/cert.c index 89a65881370..70fd72ebbb9 100644 --- a/dlls/crypt32/cert.c +++ b/dlls/crypt32/cert.c @@ -78,3 +78,13 @@ BOOL WINAPI CertFreeCertificateContext( PCCERT_CONTEXT pCertContext ) FIXME("%p stub\n", pCertContext); return TRUE; } + +PCCERT_CONTEXT WINAPI CertFindCertificateInStore(HCERTSTORE hCertStore, + DWORD dwCertEncodingType, DWORD dwFlags, DWORD dwType, + const void *pvPara, PCCERT_CONTEXT pPrevCertContext) +{ + FIXME("stub: %p %ld %ld %ld %p %p", hCertStore, dwCertEncodingType, + dwFlags, dwType, pvPara, pPrevCertContext); + SetLastError(CRYPT_E_NOT_FOUND); + return NULL; +} diff --git a/dlls/crypt32/crypt32.spec b/dlls/crypt32/crypt32.spec index 1ede7affccd..8f6d3204775 100644 --- a/dlls/crypt32/crypt32.spec +++ b/dlls/crypt32/crypt32.spec @@ -34,7 +34,7 @@ @ stdcall CertEnumCertificatesInStore(long ptr) @ stub CertFindAttribute @ stub CertFindCTLInStore -@ stub CertFindCertificateInStore +@ stdcall CertFindCertificateInStore(long long long long ptr ptr) @ stub CertFindExtension @ stub CertFindRDNAttr @ stub CertFindSubjectInCTL diff --git a/include/winerror.h b/include/winerror.h index 164f54f0e1c..11ffa3ddcf3 100644 --- a/include/winerror.h +++ b/include/winerror.h @@ -2057,6 +2057,7 @@ #define SEC_E_MULTIPLE_ACCOUNTS _HRESULT_TYPEDEF_(0x80090347L) #define SEC_E_NO_KERB_KEY _HRESULT_TYPEDEF_(0x80090348L) +#define CRYPT_E_NOT_FOUND _HRESULT_TYPEDEF_(0x80092004L) #define CRYPT_E_REVOKED _HRESULT_TYPEDEF_(0x80092010L) #define CRYPT_E_NO_REVOCATION_CHECK _HRESULT_TYPEDEF_(0x80092012L) #define CRYPT_E_REVOCATION_OFFLINE _HRESULT_TYPEDEF_(0x80092013L)