You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.6 KiB
46 lines
1.6 KiB
//+-------------------------------------------------------------------------
|
|
//
|
|
// 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));
|
|
}
|
|
|