summaryrefslogtreecommitdiff
path: root/globals.c
diff options
context:
space:
mode:
authorSteve McIntyre <steve@einval.com>2022-04-27 22:41:59 +0100
committerSteve McIntyre <steve@einval.com>2022-04-27 22:41:59 +0100
commitacb8d1ffbca46190a934a5b27185a95ba4451fda (patch)
treedc4a7291fa6dff3855f012b74ee779fa49ce8e94 /globals.c
parent39c311d6773b915df277a62425a6715b2d977ab6 (diff)
parent8529e0f7f70f427a7202815061362eceba6bfc50 (diff)
downloadefi-boot-shim-acb8d1ffbca46190a934a5b27185a95ba4451fda.tar.gz
efi-boot-shim-acb8d1ffbca46190a934a5b27185a95ba4451fda.zip
Update upstream source from tag 'upstream/15.5'
Update to upstream version '15.5' with Debian dir 3ac353daa3d32301e3b225b2b6f446200a2c682f
Diffstat (limited to 'globals.c')
-rw-r--r--globals.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/globals.c b/globals.c
new file mode 100644
index 00000000..4a1f432f
--- /dev/null
+++ b/globals.c
@@ -0,0 +1,32 @@
+// SPDX-License-Identifier: BSD-2-Clause-Patent
+/*
+ * globals.c - global shim state
+ * Copyright Peter Jones <pjones@redhat.com>
+ */
+
+#include "shim.h"
+
+UINT32 vendor_authorized_size = 0;
+UINT8 *vendor_authorized = NULL;
+
+UINT32 vendor_deauthorized_size = 0;
+UINT8 *vendor_deauthorized = NULL;
+
+#if defined(ENABLE_SHIM_CERT)
+UINT32 build_cert_size;
+UINT8 *build_cert;
+#endif /* defined(ENABLE_SHIM_CERT) */
+
+/*
+ * indicator of how an image has been verified
+ */
+verification_method_t verification_method;
+int loader_is_participating;
+
+UINT8 user_insecure_mode;
+UINT8 ignore_db;
+UINT8 trust_mok_list;
+
+UINT32 verbose = 0;
+
+// vim:fenc=utf-8:tw=75:noet