efi_loader: Re-factor code to build the signature store from efi signature list
authorSughosh Ganu <sughosh.ganu@linaro.org>
Wed, 30 Dec 2020 13:57:08 +0000 (19:27 +0530)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 31 Dec 2020 13:41:31 +0000 (14:41 +0100)
commitb4f20a5d83f0b8a5c30128966eabe68748631e66
treefd14433b5008a99a2b5143a6c244005b2d171126
parent201b8068f35385c1c7794f24d0a3ac427210f241
efi_loader: Re-factor code to build the signature store from efi signature list

The efi_sigstore_parse_sigdb function reads the uefi authenticated
variable, stored in the signature database format and builds the
signature store structure. Factor out the code for building
the signature store. This can then be used by the capsule
authentication routine to build the signature store even when the
signature database is not stored as an uefi authenticated variable

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
include/efi_loader.h
lib/efi_loader/efi_signature.c