summaryrefslogtreecommitdiff
path: root/include/efi_variable.h
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2021-09-04 15:59:00 -0400
committerTom Rini <[email protected]>2021-09-04 15:59:00 -0400
commit5e893897c675f2a4690b4decf9ee5a49ea9a2e3e (patch)
tree6ea0abbae390e0d6619deda0e9d771ab50fee28d /include/efi_variable.h
parentecd6e0ce5aaeeb1149b0b8ebe6bed8198d0bd2fe (diff)
parent538c0f2d3798261161a28a05e445d0c85af56276 (diff)
Merge tag 'efi-2021-10-rc4' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request for efi-2021-10-rc4 Documentation: Remove invalid reference to configuration variable in UEFI doc UEFI: Parameter checks for the EFI_TCG2_PROTOCOL Improve support of preseeding UEFI variables. Correct the calculation of the size of loaded images. Allow for UEFI images with zero VirtualSize
Diffstat (limited to 'include/efi_variable.h')
-rw-r--r--include/efi_variable.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/efi_variable.h b/include/efi_variable.h
index 4623a641427..0440d356bc8 100644
--- a/include/efi_variable.h
+++ b/include/efi_variable.h
@@ -12,6 +12,7 @@
enum efi_auth_var_type {
EFI_AUTH_VAR_NONE = 0,
+ EFI_AUTH_MODE,
EFI_AUTH_VAR_PK,
EFI_AUTH_VAR_KEK,
EFI_AUTH_VAR_DB,
@@ -161,10 +162,13 @@ efi_status_t __maybe_unused efi_var_collect(struct efi_var_file **bufp, loff_t *
/**
* efi_var_restore() - restore EFI variables from buffer
*
+ * Only if @safe is set secure boot related variables will be restored.
+ *
* @buf: buffer
+ * @safe: restoring from tamper-resistant storage
* Return: status code
*/
-efi_status_t efi_var_restore(struct efi_var_file *buf);
+efi_status_t efi_var_restore(struct efi_var_file *buf, bool safe);
/**
* efi_var_from_file() - read variables from file