aboutsummaryrefslogtreecommitdiffstats
path: root/tools/mkimage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-11-30 20:24:31 +0100
committerFelix Fietkau <nbd@nbd.name>2016-11-30 20:24:33 +0100
commite678c9f764c37f963e6667777b6a05bddcf05ea5 (patch)
treea97338edcf49ccc4686929d07525762891c20804 /tools/mkimage
parent70b104f98c0657323b28fce140b73a94bf3eb756 (diff)
downloadupstream-e678c9f764c37f963e6667777b6a05bddcf05ea5.tar.gz
upstream-e678c9f764c37f963e6667777b6a05bddcf05ea5.tar.bz2
upstream-e678c9f764c37f963e6667777b6a05bddcf05ea5.zip
mkimage: fix openssl 1.1.x compat fix with libressl
libressl sets OPENSSL_VERSION_NUMBER to 0x20000000L, which breaks API checks based on it. Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'tools/mkimage')
-rw-r--r--tools/mkimage/patches/210-openssl-1.1.x-compat.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mkimage/patches/210-openssl-1.1.x-compat.patch b/tools/mkimage/patches/210-openssl-1.1.x-compat.patch
index fa7c99f39b..b1bc08856e 100644
--- a/tools/mkimage/patches/210-openssl-1.1.x-compat.patch
+++ b/tools/mkimage/patches/210-openssl-1.1.x-compat.patch
@@ -11,7 +11,7 @@
#define HAVE_ERR_REMOVE_THREAD_STATE
#endif
-+#if OPENSSL_VERSION_NUMBER < 0x10100005L
++#if (OPENSSL_VERSION_NUMBER < 0x10100005L) || defined(LIBRESSL_VERSION_NUMBER)
+static void RSA_get0_key(const RSA *r,
+ const BIGNUM **n, const BIGNUM **e, const BIGNUM **d)
+{