summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2017-06-06 15:17:27 +0200
committerTom Rini <trini@konsulko.com>2017-06-09 20:34:57 -0400
commit56491f98d48921a57d1f13e3f91556a1b87de2f8 (patch)
tree624a8dc9d0818c8031e1a1d80093b99dbac34a4c /tools
parent39f0819125834774e431a55d61f5d78ce7691819 (diff)
downloadu-boot-56491f98d48921a57d1f13e3f91556a1b87de2f8.tar.gz
u-boot-56491f98d48921a57d1f13e3f91556a1b87de2f8.tar.xz
u-boot-56491f98d48921a57d1f13e3f91556a1b87de2f8.zip
tools/kwbimage: Support building with LibreSSL
The kwbimage utility fails to compile when LibreSSL is present on the host system instead of OpenSSL. This one-line patch resolves this. Signed-off-by: Marek Behun <marek.behun@nic.cz>
Diffstat (limited to 'tools')
-rw-r--r--tools/kwbimage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/kwbimage.c b/tools/kwbimage.c
index edef560faf..5830549d26 100644
--- a/tools/kwbimage.c
+++ b/tools/kwbimage.c
@@ -24,7 +24,7 @@
#include <openssl/err.h>
#include <openssl/evp.h>
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
static void RSA_get0_key(const RSA *r,
const BIGNUM **n, const BIGNUM **e, const BIGNUM **d)
{