michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef _CERTIFICATECHECK_H_ michael@0: #define _CERTIFICATECHECK_H_ michael@0: michael@0: #include michael@0: michael@0: struct CertificateCheckInfo michael@0: { michael@0: LPCWSTR name; michael@0: LPCWSTR issuer; michael@0: }; michael@0: michael@0: BOOL DoCertificateAttributesMatch(PCCERT_CONTEXT pCertContext, michael@0: CertificateCheckInfo &infoToMatch); michael@0: DWORD VerifyCertificateTrustForFile(LPCWSTR filePath); michael@0: DWORD CheckCertificateForPEFile(LPCWSTR filePath, michael@0: CertificateCheckInfo &infoToMatch); michael@0: michael@0: #endif