#include <wintrust.h>
#include <softpub.h>
Go to the source code of this file.
#define PH_VERIFY_DEFAULT_SIZE_LIMIT (32 * 1024 * 1024) |
#define PH_VERIFY_PREVENT_NETWORK_ACCESS 0x1 |
#define PH_VERIFY_VIEW_PROPERTIES 0x2 |
- Enumerator:
VrUnknown |
|
VrNoSignature |
|
VrTrusted |
|
VrExpired |
|
VrRevoked |
|
VrDistrust |
|
VrSecuritySettings |
|
VrBadSignature |
|
Definition at line 9 of file verify.h.
VOID PhFreeVerifySignatures |
( |
_In_ PCERT_CONTEXT * |
Signatures, |
|
|
_In_ ULONG |
NumberOfSignatures |
|
) |
| |
PPH_STRING PhGetSignerNameFromCertificate |
( |
_In_ PCERT_CONTEXT |
Certificate | ) |
|
Verifies a file's digital signature.
- Parameters
-
FileName | A file name. |
SignerName | A variable which receives a pointer to a string containing the signer name. You must free the string using PhDereferenceObject() when you no longer need it. Note that the signer name may be NULL if it is not valid. |
- Returns
- A VERIFY_RESULT value.
Definition at line 641 of file verify.c.
NTSTATUS PhVerifyFileEx |
( |
_In_ PPH_VERIFY_FILE_INFO |
Information, |
|
|
_Out_ VERIFY_RESULT * |
VerifyResult, |
|
|
_Out_opt_ PCERT_CONTEXT ** |
Signatures, |
|
|
_Out_opt_ PULONG |
NumberOfSignatures |
|
) |
| |