[U-Boot] [PATCH] tools/kwbimage: Support building with LibreSSL

From: Marek Behún marek.behun@nic.cz
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
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) {

On Tue, Jun 06, 2017 at 03:17:27PM +0200, Marek Behún wrote:
From: Marek Behún marek.behun@nic.cz
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
diff --git a/tools/kwbimage.c b/tools/kwbimage.c index edef560faf..5830549d26 100644
Applied to u-boot/master, thanks!
participants (2)
-
Marek Behun
-
Tom Rini