summaryrefslogtreecommitdiff
path: root/board/emulation/common
diff options
context:
space:
mode:
authorSughosh Ganu <sughosh.ganu@linaro.org>2021-04-12 20:35:23 +0530
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2021-05-18 12:36:12 +0200
commit6a2e26b95f046a2973a95119910cbe2554c92b46 (patch)
tree9dc2d2abb7d240f500a6c6b46667658a2d560c76 /board/emulation/common
parente2ae483c3b4ce5a19a53b29eabbcb9a75f4ce160 (diff)
efi_loader: capsule: Remove the check for capsule_authentication_enabled environment variable
The current capsule authentication code checks if the environment variable capsule_authentication_enabled is set, for authenticating the capsule. This is in addition to the check for the config symbol CONFIG_EFI_CAPSULE_AUTHENTICATE. Remove the check for the environment variable. The capsule will now be authenticated if the config symbol is set. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Reviwed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'board/emulation/common')
-rw-r--r--board/emulation/common/qemu_capsule.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/board/emulation/common/qemu_capsule.c b/board/emulation/common/qemu_capsule.c
index 5cb461d52b..6b8a87022a 100644
--- a/board/emulation/common/qemu_capsule.c
+++ b/board/emulation/common/qemu_capsule.c
@@ -41,9 +41,3 @@ int efi_get_public_key_data(void **pkey, efi_uintn_t *pkey_len)
return 0;
}
-
-bool efi_capsule_auth_enabled(void)
-{
- return env_get("capsule_authentication_enabled") != NULL ?
- true : false;
-}