summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.h
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2019-04-25 16:03:05 +0200
committerLaszlo Ersek <lersek@redhat.com>2019-04-30 14:26:39 +0200
commita79b115adeab638feeedde2f3d3dcb141e4b445b (patch)
treec0a0c7c2db52eebbfee823ef56158cd7c7e5110b /OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.h
parent1c9418fcafe3d2eea336be092d9cdd29762537fe (diff)
downloadedk2-a79b115adeab638feeedde2f3d3dcb141e4b445b.tar.gz
edk2-a79b115adeab638feeedde2f3d3dcb141e4b445b.tar.bz2
edk2-a79b115adeab638feeedde2f3d3dcb141e4b445b.zip
OvmfPkg/EnrollDefaultKeys: split out certificate and signature constants
A large portion of "EnrollDefaultKeys.c" is hex-encoded X509 certificates, GUIDs, and signatures. These objects are constants, unlikely to see changes anytime soon. Move them out of the way, to "AuthData.c", so we can more easily work on functions in "EnrollDefaultKeys.c". Cc: Anthony Perard <anthony.perard@citrix.com> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Julien Grall <julien.grall@arm.com> Bugzilla: https://bugzilla.tianocore.org/show_bug.cgi?id=1747 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com> Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Gary Lin <glin@suse.com>
Diffstat (limited to 'OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.h')
-rw-r--r--OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.h b/OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.h
index 9bcd87ff4f..07f4aa04e4 100644
--- a/OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.h
+++ b/OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.h
@@ -1,5 +1,6 @@
/** @file
- Type definitions for the EnrollDefaultKeys application.
+ Type definitions and object declarations for the EnrollDefaultKeys
+ application.
Copyright (C) 2014-2019, Red Hat, Inc.
@@ -118,4 +119,25 @@ typedef struct {
UINT8 VendorKeys;
} SETTINGS;
+
+//
+// Refer to "AuthData.c" for details on the following objects.
+//
+extern CONST UINT8 mRedHatPkKek1[];
+extern CONST UINTN mSizeOfRedHatPkKek1;
+
+extern CONST UINT8 mMicrosoftKek[];
+extern CONST UINTN mSizeOfMicrosoftKek;
+
+extern CONST UINT8 mMicrosoftPca[];
+extern CONST UINTN mSizeOfMicrosoftPca;
+
+extern CONST UINT8 mMicrosoftUefiCa[];
+extern CONST UINTN mSizeOfMicrosoftUefiCa;
+
+extern CONST UINT8 mSha256OfDevNull[];
+extern CONST UINTN mSizeOfSha256OfDevNull;
+
+extern CONST EFI_GUID mMicrosoftOwnerGuid;
+
#endif /* ENROLL_DEFAULT_KEYS_H_ */