aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/pkcs7_parser.c
diff options
context:
space:
mode:
authorAKASHI Takahiro <takahiro.akashi@linaro.org>2020-04-21 09:38:17 +0900
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2020-05-04 12:26:11 +0200
commite3f5c9cb0fcc95aa9287b5f8609294fe1a59b9da (patch)
tree55a3eda717dff309fa9f793f181c07a9827d940c /lib/crypto/pkcs7_parser.c
parent7b8b63fb8ead9bd4041ab5424deb465f14ee172a (diff)
downloadu-boot-e3f5c9cb0fcc95aa9287b5f8609294fe1a59b9da.zip
u-boot-e3f5c9cb0fcc95aa9287b5f8609294fe1a59b9da.tar.gz
u-boot-e3f5c9cb0fcc95aa9287b5f8609294fe1a59b9da.tar.bz2
lib/crypto, efi_loader: move some headers to include/crypto
Pkcs7_parse.h and x509_parser.h are used in UEFI subsystem, in particular, secure boot. So move them to include/crypto to avoid relative paths. Suggested-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Don't include include x509_parser.h twice. Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib/crypto/pkcs7_parser.c')
-rw-r--r--lib/crypto/pkcs7_parser.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/crypto/pkcs7_parser.c b/lib/crypto/pkcs7_parser.c
index f5dda11..0ee207b 100644
--- a/lib/crypto/pkcs7_parser.c
+++ b/lib/crypto/pkcs7_parser.c
@@ -20,7 +20,11 @@
#include <linux/err.h>
#include <linux/oid_registry.h>
#include <crypto/public_key.h>
+#ifdef __UBOOT__
+#include <crypto/pkcs7_parser.h>
+#else
#include "pkcs7_parser.h"
+#endif
#include "pkcs7.asn1.h"
MODULE_DESCRIPTION("PKCS#7 parser");