]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tools/kwbimage: Support building with LibreSSL
authorMarek BehĂșn <marek.behun@nic.cz>
Tue, 6 Jun 2017 13:17:27 +0000 (15:17 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 10 Jun 2017 00:34:57 +0000 (20:34 -0400)
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>
tools/kwbimage.c

index edef560faf3643c2700b273969328fb6b6ba86d9..5830549d261095412f134a4d584656378bf38ddf 100644 (file)
@@ -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)
 {