Add the missing EFI_IMAGE_EXECUTION_AUTH_ value definitions.
authorlgao4 <lgao4@de2fecce-e211-0410-80a6-f3fac2684e05>
Mon, 7 Dec 2009 03:04:34 +0000 (03:04 +0000)
committerlgao4 <lgao4@de2fecce-e211-0410-80a6-f3fac2684e05>
Mon, 7 Dec 2009 03:04:34 +0000 (03:04 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@9521 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/MdePkg/Include/Guid/ImageAuthentication.h
edk2/MdePkg/Include/Guid/WinCertificate.h

index 5e97c3c..0d28d4d 100644 (file)
@@ -166,7 +166,14 @@ typedef struct {
 //***********************************************************************\r
 typedef UINT32 EFI_IMAGE_EXECUTION_ACTION;\r
 \r
-#define EFI_IMAGE_EXECUTION_AUTHENTICATION          0x00000007 \r
+#define EFI_IMAGE_EXECUTION_AUTHENTICATION      0x00000007 \r
+#define EFI_IMAGE_EXECUTION_AUTH_UNTESTED       0x00000000\r
+#define EFI_IMAGE_EXECUTION_AUTH_SIG_FAILED     0x00000001\r
+#define EFI_IMAGE_EXECUTION_AUTH_SIG_PASSED     0x00000002\r
+#define EFI_IMAGE_EXECUTION_AUTH_SIG_NOT_FOUND  0x00000003\r
+#define EFI_IMAGE_EXECUTION_AUTH_SIG_FOUND      0x00000004\r
+#define EFI_IMAGE_EXECUTION_POLICY_FAILED       0x00000005\r
+#define EFI_IMAGE_EXECUTION_INITIALIZED         0x00000008\r
 \r
 //\r
 // EFI_IMAGE_EXECUTION_INFO is added to EFI System Configuration Table \r
index f7a4190..309046e 100644 (file)
@@ -62,9 +62,12 @@ typedef struct {
 /// WIN_CERTIFICATE_UEFI_GUID.CertData\r
 /// \r
 typedef struct {\r
-  UINT32  HashType;\r
-  UINT8   PublicKey[256];\r
-  UINT8   Signature[256];\r
+  //\r
+  // HashType not in public UEFI specification.\r
+  //\r
+  EFI_GUID  HashType;\r
+  UINT8     PublicKey[256];\r
+  UINT8     Signature[256];\r
 } EFI_CERT_BLOCK_RSA_2048_SHA256;\r
 \r
 \r