net-misc/rdesktop: support libressl in openssl 1.1 patch
authorBernard Cafarelli <voyageur@gentoo.org>
Tue, 21 Aug 2018 20:33:59 +0000 (22:33 +0200)
committerBernard Cafarelli <voyageur@gentoo.org>
Tue, 21 Aug 2018 20:34:10 +0000 (22:34 +0200)
This patch uses openssl-1.1 specific functions when openssl version is
new enough. This fails for libressl (reporting itself as higher
version), the patch is updated to check for libressl version number too

Package-Manager: Portage-2.3.48, Repoman-2.3.10

net-misc/rdesktop/files/rdesktop-1.8.3-openssl-1.1.patch

index bea047cce9a9d515356b0b0e4d3ec712b9cdcb9d..c74bd48c5aa0e80e8a3d24f17fe3125f47f5d354 100644 (file)
@@ -94,7 +94,7 @@ index 48751255..032e9b9e 100644
 +      BIGNUM *e = NULL;
 +      BIGNUM *n = NULL;
 +
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if (OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER))
 +      e = rkey->e;
 +      n = rkey->n;
 +#else