0099-mkimage-fix-openssl-1.1.x-compat-fix-with-libressl.patch 979 B

123456789101112131415161718192021222324
  1. From: Felix Fietkau <nbd@nbd.name>
  2. Date: Wed, 30 Nov 2016 20:24:31 +0100
  3. Subject: mkimage: fix openssl 1.1.x compat fix with libressl
  4. libressl sets OPENSSL_VERSION_NUMBER to 0x20000000L, which breaks API
  5. checks based on it.
  6. Signed-off-by: Felix Fietkau <nbd@nbd.name>
  7. Backport of e678c9f764c37f963e6667777b6a05bddcf05ea5
  8. diff --git a/tools/mkimage/patches/210-openssl-1.1.x-compat.patch b/tools/mkimage/patches/210-openssl-1.1.x-compat.patch
  9. index fa7c99f39b0a65f0d784473ca9b8fde836e4fa6e..b1bc08856ea13b04d2aba58b551c3dcf2f1d2a0b 100644
  10. --- a/tools/mkimage/patches/210-openssl-1.1.x-compat.patch
  11. +++ b/tools/mkimage/patches/210-openssl-1.1.x-compat.patch
  12. @@ -11,7 +11,7 @@
  13. #define HAVE_ERR_REMOVE_THREAD_STATE
  14. #endif
  15. -+#if OPENSSL_VERSION_NUMBER < 0x10100005L
  16. ++#if (OPENSSL_VERSION_NUMBER < 0x10100005L) || defined(LIBRESSL_VERSION_NUMBER)
  17. +static void RSA_get0_key(const RSA *r,
  18. + const BIGNUM **n, const BIGNUM **e, const BIGNUM **d)
  19. +{