diff options
author | Steve McIntyre <steve@einval.com> | 2024-02-17 17:35:37 +0000 |
---|---|---|
committer | Steve McIntyre <steve@einval.com> | 2024-02-17 17:35:37 +0000 |
commit | a075e58606b9affb6dfb176c71caab816737a981 (patch) | |
tree | cb517fcf059f8d9d9dd7f6860a2d77d75ddc4142 /include/sbat.h | |
parent | 2dd2f7600d41253fe621b8d040ab57f0c202d71b (diff) | |
download | efi-boot-shim-upstream.tar.gz efi-boot-shim-upstream.zip |
New upstream version 15.8upstream/15.8upstream
Diffstat (limited to 'include/sbat.h')
-rw-r--r-- | include/sbat.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/include/sbat.h b/include/sbat.h index c94c4fba..bb523e7e 100644 --- a/include/sbat.h +++ b/include/sbat.h @@ -30,10 +30,15 @@ #define SBAT_POLICY L"SbatPolicy" #define SBAT_POLICY8 "SbatPolicy" +#define SSP_POLICY L"SSPPolicy" +#define SSP_POLICY8 "SSPPolicy" -#define SBAT_POLICY_LATEST 1 -#define SBAT_POLICY_PREVIOUS 2 -#define SBAT_POLICY_RESET 3 +#define POLICY_LATEST 1 +#define POLICY_AUTOMATIC 2 +#define POLICY_RESET 3 +#define POLICY_NOTREAD 255 + +#define REVOCATIONFILE L"revocations.efi" extern UINTN _sbat, _esbat; @@ -50,9 +55,10 @@ extern list_t sbat_var; #define SBAT_VAR_COLUMNS ((sizeof (struct sbat_var_entry) - sizeof(list_t)) / sizeof(CHAR8 *)) #define SBAT_VAR_REQUIRED_COLUMNS (SBAT_VAR_COLUMNS - 1) -EFI_STATUS parse_sbat_var(list_t *entries); +EFI_STATUS parse_sbat_var(list_t *entries, char *sbat_var_candidate); void cleanup_sbat_var(list_t *entries); -EFI_STATUS set_sbat_uefi_variable(void); +EFI_STATUS set_sbat_uefi_variable_internal(void); +EFI_STATUS set_sbat_uefi_variable(char *, char *); bool preserve_sbat_uefi_variable(UINT8 *sbat, UINTN sbatsize, UINT32 attributes, char *sbar_var); |