summaryrefslogtreecommitdiff
path: root/lib/crypto/x509_public_key.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-05-05 12:32:44 -0400
committerTom Rini <trini@konsulko.com>2020-05-05 12:32:44 -0400
commit9a3cc7b6d416fddfa6058b731fe5c9055dba6918 (patch)
treed08f6b1c5c9707d03b9343ad4896ea4df749b9c6 /lib/crypto/x509_public_key.c
parent191ee8aac60d6b828ee5f933ab2c6aceda167082 (diff)
parent16ad946f41d3dc3e475d8313f4acbba0df527a2a (diff)
Merge tag 'efi-2020-07-rc2-2' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
Pull request for UEFI sub-system for efi-2020-07-rc2-2 This patch contains error corrections and code simplifications for the UEFI sub-system.
Diffstat (limited to 'lib/crypto/x509_public_key.c')
-rw-r--r--lib/crypto/x509_public_key.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/crypto/x509_public_key.c b/lib/crypto/x509_public_key.c
index 676c0df1741..571af9a0adf 100644
--- a/lib/crypto/x509_public_key.c
+++ b/lib/crypto/x509_public_key.c
@@ -16,15 +16,17 @@
#include <linux/module.h>
#endif
#include <linux/kernel.h>
-#ifndef __UBOOT__
+#ifdef __UBOOT__
+#include <crypto/x509_parser.h>
+#else
#include <linux/slab.h>
#include <keys/asymmetric-subtype.h>
#include <keys/asymmetric-parser.h>
#include <keys/system_keyring.h>
#include <crypto/hash.h>
#include "asymmetric_keys.h"
-#endif
#include "x509_parser.h"
+#endif
/*
* Set up the signature parameters in an X.509 certificate. This involves