summaryrefslogtreecommitdiff
path: root/shim.h
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2020-12-02 13:59:38 -0500
committerPeter Jones <pjones@redhat.com>2021-02-13 11:02:59 -0500
commit06e98a10f639ba53201876f2ff9fbd468bfa8189 (patch)
tree1117e4c43121edb5a683ae0bcd9fcdcf3fca38ef /shim.h
parent186595864c4c7c47fe3a9795e4867b8a72205e38 (diff)
downloadefi-boot-shim-06e98a10f639ba53201876f2ff9fbd468bfa8189.tar.gz
efi-boot-shim-06e98a10f639ba53201876f2ff9fbd468bfa8189.zip
Move a bunch of PE-related stuff out of shim.c
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'shim.h')
-rw-r--r--shim.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/shim.h b/shim.h
index 433a34d0..01622299 100644
--- a/shim.h
+++ b/shim.h
@@ -29,6 +29,7 @@
#undef uefi_call_wrapper
#include <stddef.h>
+#include <stdint.h>
#define nonnull(...) __attribute__((__nonnull__(__VA_ARGS__)))
@@ -135,6 +136,7 @@
#include "include/netboot.h"
#include "include/passwordcrypt.h"
#include "include/peimage.h"
+#include "include/pe.h"
#include "include/replacements.h"
#if defined(OVERRIDE_SECURITY_POLICY)
#include "include/security_policy.h"
@@ -204,6 +206,15 @@ extern UINT8 *build_cert;
extern UINT8 user_insecure_mode;
extern UINT8 ignore_db;
extern UINT8 in_protocol;
+extern void *load_options;
+extern UINT32 load_options_size;
+
+BOOLEAN secure_mode (void);
+
+EFI_STATUS
+verify_buffer (char *data, int datasize,
+ PE_COFF_LOADER_IMAGE_CONTEXT *context,
+ UINT8 *sha256hash, UINT8 *sha1hash);
#define perror_(file, line, func, fmt, ...) ({ \
UINTN __perror_ret = 0; \