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-12-rel~137 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c9bea5e04e2a562017af0ac7a27b1b0e00e8907;p=mutt Fix compilation with LibreSSL <2.7.0. (closes #112) --- diff --git a/mutt_ssl.c b/mutt_ssl.c index 0ac037fb..bcffb469 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