diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2020-04-21 09:38:17 +0900 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-05-04 12:26:11 +0200 |
commit | e3f5c9cb0fcc95aa9287b5f8609294fe1a59b9da (patch) | |
tree | 55a3eda717dff309fa9f793f181c07a9827d940c /lib/crypto/x509_cert_parser.c | |
parent | 7b8b63fb8ead9bd4041ab5424deb465f14ee172a (diff) |
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/x509_cert_parser.c')
-rw-r--r-- | lib/crypto/x509_cert_parser.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/crypto/x509_cert_parser.c b/lib/crypto/x509_cert_parser.c index 4e41cffd23..18f5407a07 100644 --- a/lib/crypto/x509_cert_parser.c +++ b/lib/crypto/x509_cert_parser.c @@ -18,7 +18,11 @@ #include <linux/string.h> #endif #include <crypto/public_key.h> +#ifdef __UBOOT__ +#include <crypto/x509_parser.h> +#else #include "x509_parser.h" +#endif #include "x509.asn1.h" #include "x509_akid.asn1.h" |