From: Stefan Strogin Date: Tue, 8 Jan 2019 19:18:38 +0000 (+0200) Subject: Fix compilation with LibreSSL <2.7.0. (closes #112) X-Git-Tag: mutt-1-11-3-rel~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83585f9b8493554b63f3dc103f25bf2db5a5de54;p=mutt Fix compilation with LibreSSL <2.7.0. (closes #112) (cherry picked from commit 9c9bea5e04e2a562017af0ac7a27b1b0e00e8907) --- diff --git a/mutt_ssl.c b/mutt_ssl.c index 37e5471c..8816be41 100644 --- a/mutt_ssl.c +++ b/mutt_ssl.c @@ -28,7 +28,7 @@ #include #include -#if OPENSSL_VERSION_NUMBER < 0x10100000L +#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL) #define X509_get0_notBefore X509_get_notBefore #define X509_get0_notAfter X509_get_notAfter #define X509_getm_notBefore X509_get_notBefore