From 94a9b5a2bf6122ddbdacb9d45c4ddcd8e3168db8 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Wed, 4 Oct 2006 07:49:29 -0700 Subject: [PATCH] crypt32: Implement CertVerifyValidityNesting. --- dlls/crypt32/cert.c | 9 +++++++++ dlls/crypt32/crypt32.spec | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/dlls/crypt32/cert.c b/dlls/crypt32/cert.c index 44bdbb7a932..b520c0f306c 100644 --- a/dlls/crypt32/cert.c +++ b/dlls/crypt32/cert.c @@ -1125,6 +1125,15 @@ LONG WINAPI CertVerifyTimeValidity(LPFILETIME pTimeToVerify, return ret; } +BOOL WINAPI CertVerifyValidityNesting(PCERT_INFO pSubjectInfo, + PCERT_INFO pIssuerInfo) +{ + TRACE("(%p, %p)\n", pSubjectInfo, pIssuerInfo); + + return CertVerifyTimeValidity(&pSubjectInfo->NotBefore, pIssuerInfo) == 0 + && CertVerifyTimeValidity(&pSubjectInfo->NotAfter, pIssuerInfo) == 0; +} + BOOL WINAPI CryptHashCertificate(HCRYPTPROV hCryptProv, ALG_ID Algid, DWORD dwFlags, const BYTE *pbEncoded, DWORD cbEncoded, BYTE *pbComputedHash, DWORD *pcbComputedHash) diff --git a/dlls/crypt32/crypt32.spec b/dlls/crypt32/crypt32.spec index aa5c1cba2c3..7ee23f4e683 100644 --- a/dlls/crypt32/crypt32.spec +++ b/dlls/crypt32/crypt32.spec @@ -88,7 +88,7 @@ @ stub CertVerifyRevocation @ stdcall CertVerifySubjectCertificateContext(ptr ptr ptr) @ stdcall CertVerifyTimeValidity(ptr ptr) -@ stub CertVerifyValidityNesting +@ stdcall CertVerifyValidityNesting(ptr ptr) @ stdcall CreateFileU(wstr long long ptr long long ptr) kernel32.CreateFileW @ stdcall CryptBinaryToStringA(ptr long long ptr ptr) @ stub CryptBinaryToStringW # (ptr long long ptr ptr)