diff options
| author | Eric Snowberg <eric.snowberg@oracle.com> | 2022-01-27 17:33:01 -0500 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2022-05-17 18:30:52 -0400 |
| commit | bb4b60e800823c1e48220935e3b9180c8c82e1a7 (patch) | |
| tree | 663b6050552c18e0a4e3615a19a140d9f306da6c /include | |
| parent | 6402f1fec4c9b19f8d570791827b13b9cad98827 (diff) | |
| download | efi-boot-shim-bb4b60e800823c1e48220935e3b9180c8c82e1a7.tar.gz efi-boot-shim-bb4b60e800823c1e48220935e3b9180c8c82e1a7.zip | |
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 <eric.snowberg@oracle.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/pe.h | 4 |
1 files changed, 4 insertions, 0 deletions
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); |
