LibreOffice Module onlineupdate (master) 1
Functions
registrycertificates.hxx File Reference
#include "certificatecheck.hxx"
Include dependency graph for registrycertificates.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

BOOL DoesBinaryMatchAllowedCertificates (LPCWSTR basePathForUpdate, LPCWSTR filePath)
 Verifies if the file path matches any certificate stored in the registry. More...
 

Function Documentation

◆ DoesBinaryMatchAllowedCertificates()

BOOL DoesBinaryMatchAllowedCertificates ( LPCWSTR  basePathForUpdate,
LPCWSTR  filePath 
)

Verifies if the file path matches any certificate stored in the registry.

Parameters
filePathThe file path of the application to check if allowed.
Returns
TRUE if the binary matches any of the allowed certificates.

Definition at line 56 of file registrycertificates.cxx.

References CalculateRegistryPathFromFilePath(), CheckCertificateForPEFile(), FALSE, filePath, i, LOG_WARN, LONG, MAX_KEY_LENGTH, MAX_PATH, name, TEST_ONLY_FALLBACK_KEY_PATH, TRUE, and VerifyCertificateTrustForFile().

Referenced by ProcessSoftwareUpdateCommand().