dev-perl/Crypt-OpenSSL-RSA: compatibility patch for LibreSSL
authorAaron Bauman <bman@gentoo.org>
Thu, 19 Apr 2018 23:29:55 +0000 (19:29 -0400)
committerAaron Bauman <bman@gentoo.org>
Sat, 21 Apr 2018 17:54:40 +0000 (13:54 -0400)
This patch was pulled from upstream to adjust version checks to fix
compatibiity with the OpenSSL and LibreSSL 1.1 API implementations.

Closes: https://bugs.gentoo.org/651170
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Closes: https://github.com/gentoo/gentoo/pull/8078

dev-perl/Crypt-OpenSSL-RSA/files/Crypt-OpenSSL-RSA-0.280.0-openssl-1.1.0.patch

index 719ef2824d6723a7a489f218e0aea04ff2853fa2..463bcdfc83ce2ee9718fc0bbed2c8ef1bf69e7ab 100644 (file)
@@ -20,8 +20,8 @@ index de512e7822d0..b384cb0e23a2 100644
  
  #define THROW(p_result) if (!(p_result)) { error = 1; goto err; }
  
-+#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER)
-+
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || \
++    (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
 +static void RSA_get0_key(const RSA *r,
 +                         const BIGNUM **n, const BIGNUM **e, const BIGNUM **d)
 +{