diff options
author | Sughosh Ganu <sughosh.ganu@linaro.org> | 2020-12-30 19:27:07 +0530 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-12-31 14:41:31 +0100 |
commit | 201b8068f35385c1c7794f24d0a3ac427210f241 (patch) | |
tree | 074a7b01d6d21174e8a7e6c64c6d0c95c89e722c /include/efi_loader.h | |
parent | 65f3fc18fc1e5e79a7991fa0e9e2dc3667af770a (diff) | |
download | u-boot-201b8068f35385c1c7794f24d0a3ac427210f241.tar.gz |
efi_loader: Make the pkcs7 header parsing function an extern
The pkcs7 header parsing functionality is pretty generic, and can be
used by other features like capsule authentication. Make the function
an extern, also changing it's name to efi_parse_pkcs7_header
Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r-- | include/efi_loader.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h index 790d4bf64c..f1dfb1d33f 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -820,6 +820,10 @@ bool efi_secure_boot_enabled(void); bool efi_image_parse(void *efi, size_t len, struct efi_image_regions **regp, WIN_CERTIFICATE **auth, size_t *auth_len); +struct pkcs7_message *efi_parse_pkcs7_header(const void *buf, + size_t buflen, + u8 **tmpbuf); + /* runtime implementation of memcpy() */ void efi_memcpy_runtime(void *dest, const void *src, size_t n); |