SecurityPkg: Add gEdkiiSecureBootModeGuid definition
[mirror_edk2.git] / SecurityPkg / Include / Guid / AuthenticatedVariableFormat.h
CommitLineData
0c18794e 1/** @file\r
7ae77cee 2 The variable data structures are related to EDKII-specific\r
0c18794e 3 implementation of UEFI authenticated variables.\r
7ae77cee
SZ
4 AuthenticatedVariableFormat.h defines variable data headers\r
5 and variable storage region headers that has been moved to\r
6 VariableFormat.h.\r
7\r
8Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>\r
9This program and the accompanying materials\r
10are licensed and made available under the terms and conditions of the BSD License\r
11which accompanies this distribution. The full text of the license may be found at\r
0c18794e 12http://opensource.org/licenses/bsd-license.php\r
13\r
7ae77cee 14THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
0c18794e 15WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
16\r
17**/\r
18\r
19#ifndef __AUTHENTICATED_VARIABLE_FORMAT_H__\r
20#define __AUTHENTICATED_VARIABLE_FORMAT_H__\r
21\r
7ae77cee 22#include <Guid/VariableFormat.h>\r
0c18794e 23\r
beda2356 24#define EFI_SECURE_BOOT_ENABLE_DISABLE \\r
25 { 0xf0a30bc7, 0xaf08, 0x4556, { 0x99, 0xc4, 0x0, 0x10, 0x9, 0xc9, 0x3a, 0x44 } }\r
26\r
beda2356 27extern EFI_GUID gEfiSecureBootEnableDisableGuid;\r
c11d47b8 28extern EFI_GUID gEfiCertDbGuid;\r
29extern EFI_GUID gEfiCustomModeEnableGuid;\r
a555940b 30extern EFI_GUID gEfiVendorKeysNvGuid;\r
af9af05b 31extern EFI_GUID gEdkiiSecureBootModeGuid;\r
beda2356 32\r
33///\r
8f8ca22e 34/// "SecureBootEnable" variable for the Secure Boot feature enable/disable.\r
35/// This variable is used for allowing a physically present user to disable\r
36/// Secure Boot via firmware setup without the possession of PKpriv.\r
beda2356 37///\r
7ae77cee
SZ
38/// GUID: gEfiSecureBootEnableDisableGuid\r
39///\r
40/// Format: UINT8\r
41///\r
beda2356 42#define EFI_SECURE_BOOT_ENABLE_NAME L"SecureBootEnable"\r
43#define SECURE_BOOT_ENABLE 1\r
44#define SECURE_BOOT_DISABLE 0\r
0c18794e 45\r
ecc722ad 46///\r
47/// "CustomMode" variable for two Secure Boot modes feature: "Custom" and "Standard".\r
48/// Standard Secure Boot mode is the default mode as UEFI Spec's description.\r
49/// Custom Secure Boot mode allows for more flexibility as specified in the following:\r
50/// Can enroll or delete PK without existing PK's private key.\r
51/// Can enroll or delete KEK without existing PK's private key.\r
52/// Can enroll or delete signature from DB/DBX without KEK's private key.\r
53///\r
7ae77cee
SZ
54/// GUID: gEfiCustomModeEnableGuid\r
55///\r
56/// Format: UINT8\r
57///\r
ecc722ad 58#define EFI_CUSTOM_MODE_NAME L"CustomMode"\r
59#define CUSTOM_SECURE_BOOT_MODE 1\r
60#define STANDARD_SECURE_BOOT_MODE 0\r
61\r
a555940b
FS
62///\r
63/// "VendorKeysNv" variable to record the out of band secure boot keys modification.\r
64/// This variable is a read-only NV varaible that indicates whether someone other than\r
65/// the platform vendor has used a mechanism not defined by the UEFI Specification to\r
66/// transition the system to setup mode or to update secure boot keys.\r
67///\r
7ae77cee
SZ
68/// GUID: gEfiVendorKeysNvGuid\r
69///\r
70/// Format: UINT8\r
71///\r
a555940b
FS
72#define EFI_VENDOR_KEYS_NV_VARIABLE_NAME L"VendorKeysNv"\r
73#define VENDOR_KEYS_VALID 1\r
74#define VENDOR_KEYS_MODIFIED 0\r
75\r
0c18794e 76#endif // __AUTHENTICATED_VARIABLE_FORMAT_H__\r