From: Kevin McCarthy Date: Wed, 14 Aug 2019 04:03:51 +0000 (-0700) Subject: Fix LibreSSL build. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=342b91cf174083bd1b24e11db322ca076cdf625d;p=mutt Fix LibreSSL build. Apparently LibreSSL doesn't implement SSL_has_pending(), even for newer versions. --- diff --git a/mutt_ssl.c b/mutt_ssl.c index 3e9ef9ff..b48f319b 100644 --- a/mutt_ssl.c +++ b/mutt_ssl.c @@ -41,6 +41,11 @@ #define SSL_has_pending SSL_pending #endif +/* Unimplemented OpenSSL 1.1 api calls */ +#if (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x2070000fL) +#define SSL_has_pending SSL_pending +#endif + #undef _ #include