windows-nt/Source/XPSP1/NT/ds/security/cryptoapi/pkitrust/wintrust/certhlp.cpp

47 lines
1.5 KiB
C++
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
//+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1996 - 1999
//
// File: certhlp.cpp
//
// Contents: Microsoft Internet Security Trust Provider
//
// Functions: WTHelperCertIsSelfSigned
// WTHelperCertFindIssuerCertificate
//
// *** local functions ***
//
// History: 20-Oct-1997 pberkman created
//
//--------------------------------------------------------------------------
#include "global.hxx"
BOOL WINAPI WTHelperCertIsSelfSigned(DWORD dwEncoding, CERT_INFO *pCert)
{
if (!(CertCompareCertificateName(dwEncoding,
&pCert->Issuer,
&pCert->Subject)))
{
return(FALSE);
}
return(TRUE);
}
PCCERT_CONTEXT WINAPI WTHelperCertFindIssuerCertificate(PCCERT_CONTEXT pChildContext,
DWORD chStores,
HCERTSTORE *pahStores,
FILETIME *psftVerifyAsOf,
DWORD dwEncoding,
DWORD *pdwConfidence,
DWORD *pdwError)
{
return(TrustFindIssuerCertificate(pChildContext, dwEncoding, chStores, pahStores,
psftVerifyAsOf, pdwConfidence, pdwError, 0));
}