diff options
author | Sughosh Ganu <sughosh.ganu@linaro.org> | 2020-12-30 19:27:08 +0530 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-12-31 14:41:31 +0100 |
commit | b4f20a5d83f0b8a5c30128966eabe68748631e66 (patch) | |
tree | fd14433b5008a99a2b5143a6c244005b2d171126 /include/efi_loader.h | |
parent | 201b8068f35385c1c7794f24d0a3ac427210f241 (diff) | |
download | u-boot-b4f20a5d83f0b8a5c30128966eabe68748631e66.tar.gz u-boot-b4f20a5d83f0b8a5c30128966eabe68748631e66.tar.bz2 u-boot-b4f20a5d83f0b8a5c30128966eabe68748631e66.zip |
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>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r-- | include/efi_loader.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h index f1dfb1d33f..7fd65eeb8d 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -813,6 +813,8 @@ efi_status_t efi_image_region_add(struct efi_image_regions *regs, int nocheck); void efi_sigstore_free(struct efi_signature_store *sigstore); +struct efi_signature_store *efi_build_signature_store(void *sig_list, + efi_uintn_t size); struct efi_signature_store *efi_sigstore_parse_sigdb(u16 *name); bool efi_secure_boot_enabled(void); |