From: Stefan Strogin Date: Tue, 8 Jan 2019 19:18:38 +0000 (+0200) Subject: Fix compilation with LibreSSL <2.7.0 X-Git-Tag: 2019-10-25~357^2~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=21fcce4f1ac69afc59f54aa9c85c098632f549fa;p=neomutt Fix compilation with LibreSSL <2.7.0 Co-authored-by: Richard Russon --- diff --git a/conn/ssl.c b/conn/ssl.c index 135380880..d996f41a9 100644 --- a/conn/ssl.c +++ b/conn/ssl.c @@ -71,7 +71,8 @@ #define DEVRANDOM "/dev/urandom" #endif -#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