]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: capsule: remove authentication data
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Tue, 20 Jul 2021 05:52:05 +0000 (14:52 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 24 Jul 2021 08:49:51 +0000 (10:49 +0200)
commitc2cc60c1f93b9935c493fbe107ef8111e8baf200
tree3072aff66cc1538f32af41494e75dc26af80be10
parentef890f6331f77911a911714bf289f9e290138d4b
efi_loader: capsule: remove authentication data

If capsule authentication is disabled and yet a capsule file is signed,
its signature must be removed from image data to flush.
Otherwise, the firmware will be corrupted after update.

Fixes: 04be98bd6bcf ("efi: capsule: Add support for uefi capsule
authentication")
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
lib/efi_loader/efi_capsule.c