summaryrefslogtreecommitdiff
path: root/include/efi_loader.h
diff options
context:
space:
mode:
authorSughosh Ganu <sughosh.ganu@linaro.org>2020-12-30 16:57:07 +0300
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2020-12-31 16:41:31 +0300
commit201b8068f35385c1c7794f24d0a3ac427210f241 (patch)
tree074a7b01d6d21174e8a7e6c64c6d0c95c89e722c /include/efi_loader.h
parent65f3fc18fc1e5e79a7991fa0e9e2dc3667af770a (diff)
downloadu-boot-201b8068f35385c1c7794f24d0a3ac427210f241.tar.xz
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.h4
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);