|
LibreOffice Module onlineupdate (master) 1
|
#include <stdio.h>#include <stdlib.h>#include <windows.h>#include <softpub.h>#include <wintrust.h>#include "certificatecheck.hxx"#include "servicebase.hxx"Go to the source code of this file.
Functions | |
| DWORD | CheckCertificateForPEFile (LPCWSTR filePath, CertificateCheckInfo &infoToMatch) |
| Checks to see if a file stored at filePath matches the specified info. More... | |
| BOOL | DoCertificateAttributesMatch (PCCERT_CONTEXT certContext, CertificateCheckInfo &infoToMatch) |
| Checks to see if a file stored at filePath matches the specified info. More... | |
| LPWSTR | AllocateAndCopyWideString (LPCWSTR inputString) |
| Duplicates the specified string. More... | |
| DWORD | VerifyCertificateTrustForFile (LPCWSTR filePath) |
| Verifies the trust of the specified file path. More... | |
Variables | |
| static const int | ENCODING = X509_ASN_ENCODING | PKCS_7_ASN_ENCODING |
| LPWSTR AllocateAndCopyWideString | ( | LPCWSTR | inputString | ) |
Duplicates the specified string.
| inputString | The string to duplicate |
Definition at line 234 of file certificatecheck.cxx.
| 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().
|
static |
Definition at line 17 of file certificatecheck.cxx.
Referenced by CheckCertificateForPEFile().