LibreOffice Module onlineupdate (master) 1
|
#include <wincrypt.h>
Go to the source code of this file.
Classes | |
struct | CertificateCheckInfo |
Functions | |
BOOL | DoCertificateAttributesMatch (PCCERT_CONTEXT pCertContext, CertificateCheckInfo &infoToMatch) |
Checks to see if a file stored at filePath matches the specified info. More... | |
DWORD | VerifyCertificateTrustForFile (LPCWSTR filePath) |
Verifies the trust of the specified file path. More... | |
DWORD | CheckCertificateForPEFile (LPCWSTR filePath, CertificateCheckInfo &infoToMatch) |
Checks to see if a file stored at filePath matches the specified info. More... | |
DWORD CheckCertificateForPEFile | ( | LPCWSTR | filePath, |
CertificateCheckInfo & | infoToMatch | ||
) |
Checks to see if a file stored at filePath matches the specified info.
filePath | The PE file path to check |
infoToMatch | The acceptable information to match |
Definition at line 28 of file certificatecheck.cxx.
References cleanup(), DoCertificateAttributesMatch(), ENCODING, filePath, LOG_WARN, and result.
Referenced by DoesBinaryMatchAllowedCertificates().
BOOL DoCertificateAttributesMatch | ( | PCCERT_CONTEXT | certContext, |
CertificateCheckInfo & | infoToMatch | ||
) |
Checks to see if a file stored at filePath matches the specified info.
certContext | The certificate context of the file |
infoToMatch | The acceptable information to match |
Definition at line 132 of file certificatecheck.cxx.
References FALSE, CertificateCheckInfo::issuer, LOG_WARN, CertificateCheckInfo::name, and TRUE.
Referenced by CheckCertificateForPEFile().
DWORD VerifyCertificateTrustForFile | ( | LPCWSTR | filePath | ) |
Verifies the trust of the specified file path.
filePath | The file path to check. |
Definition at line 252 of file certificatecheck.cxx.
References filePath, LOG, LOG_WARN, and LONG.
Referenced by DoesBinaryMatchAllowedCertificates().