From: Marek BehĂșn Date: Tue, 6 Jun 2017 13:17:27 +0000 (+0200) Subject: tools/kwbimage: Support building with LibreSSL X-Git-Tag: v2017.07-rc2~58 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=56491f98d48921a57d1f13e3f91556a1b87de2f8;p=u-boot 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 --- 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 #include -#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) {