]> granicus.if.org Git - neomutt/commitdiff
Fix compilation with LibreSSL <2.7.0
authorStefan Strogin <stefan.strogin@gmail.com>
Tue, 8 Jan 2019 19:18:38 +0000 (21:18 +0200)
committerRichard Russon <rich@flatcap.org>
Wed, 20 Feb 2019 00:55:01 +0000 (00:55 +0000)
Co-authored-by: Richard Russon <rich@flatcap.org>
conn/ssl.c

index 13538088084e7312596bb854e15a3ed38458f473..d996f41a9363a07f28dc37ca4c45f076d95d0f06 100644 (file)
@@ -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