From: Alon Bar-Lev Date: Sat, 1 Sep 2018 18:10:59 +0000 (+0300) Subject: app-crypt/trousers: fix libressl-2.7 issue X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=046ed1c49505e13af56efe0b592062dd0f7971c7;p=gentoo.git app-crypt/trousers: fix libressl-2.7 issue Closes: https://bugs.gentoo.org/show_bug.cgi?id=651402 Thanks: Reuben Farrelly Package-Manager: Portage-2.3.40, Repoman-2.3.9 --- diff --git a/app-crypt/trousers/files/trousers-0.3.14-libressl.patch b/app-crypt/trousers/files/trousers-0.3.14-libressl.patch index 927626892b19..9ee7c167e219 100644 --- a/app-crypt/trousers/files/trousers-0.3.14-libressl.patch +++ b/app-crypt/trousers/files/trousers-0.3.14-libressl.patch @@ -3,6 +3,8 @@ From: Alon Bar-Lev Date: Wed, 7 Dec 2016 09:36:34 +0200 Subject: [PATCH] tspi: support libressl +Bug: https://sourceforge.net/p/trousers/bugs/222/ + Signed-off-by: Alon Bar-Lev --- src/trspi/crypto/openssl/rsa.c | 2 +- @@ -17,7 +19,7 @@ index 2b1205f..3e56015 100644 #endif -#if OPENSSL_VERSION_NUMBER < 0x10100001L -+#if OPENSSL_VERSION_NUMBER < 0x10100001L || defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER < 0x10100001L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L) static int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d) {