Added DomitoFreePortableExecutableDigest
This commit is contained in:
parent
e7c2c8c4bf
commit
494483650d
@ -199,6 +199,16 @@ DomitoCalculatePortableExecutableDigest(
|
|||||||
_Out_ PULONG pSizeOfSecurityDirectory
|
_Out_ PULONG pSizeOfSecurityDirectory
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Frees the memory allocated by DomitoCalculatePortableExecutableDigest.
|
||||||
|
//
|
||||||
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||||
|
EXTERN_C
|
||||||
|
void
|
||||||
|
DomitoFreePortableExecutableDigest(
|
||||||
|
_In_ PVOID pDigestOut
|
||||||
|
);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Verifies if the Authenticode signature of a give PE file matches the provided (e.g. SHA1) file digest.
|
// Verifies if the Authenticode signature of a give PE file matches the provided (e.g. SHA1) file digest.
|
||||||
//
|
//
|
||||||
|
@ -363,6 +363,20 @@ cleanup:
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_IRQL_requires_max_(DISPATCH_LEVEL)
|
||||||
|
void
|
||||||
|
DomitoFreePortableExecutableDigest(
|
||||||
|
_In_ PVOID pDigestOut
|
||||||
|
)
|
||||||
|
{
|
||||||
|
if (!pDigestOut)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
ExFreePoolWithTag(pDigestOut, DOMITO_POOL_TAG);
|
||||||
|
}
|
||||||
|
|
||||||
_Success_(return == STATUS_SUCCESS)
|
_Success_(return == STATUS_SUCCESS)
|
||||||
_Must_inspect_result_
|
_Must_inspect_result_
|
||||||
_IRQL_requires_max_(PASSIVE_LEVEL)
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
||||||
|
Loading…
Reference in New Issue
Block a user