From bb4b60e800823c1e48220935e3b9180c8c82e1a7 Mon Sep 17 00:00:00 2001 From: Eric Snowberg Date: Thu, 27 Jan 2022 17:33:01 -0500 Subject: Add verify_image In the future we will want to examine binaries without wanting to execute them. Create verify_image based off existing handle_image code. Signed-off-by: Eric Snowberg --- include/pe.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/pe.h b/include/pe.h index b86e1b3a..ccc8798b 100644 --- a/include/pe.h +++ b/include/pe.h @@ -14,6 +14,10 @@ EFI_STATUS read_header(void *data, unsigned int datasize, PE_COFF_LOADER_IMAGE_CONTEXT *context); +EFI_STATUS verify_image(void *data, unsigned int datasize, + EFI_LOADED_IMAGE *li, + PE_COFF_LOADER_IMAGE_CONTEXT *context); + EFI_STATUS verify_sbat_section(char *SBATBase, size_t SBATSize); -- cgit v1.2.3