From a28c5f805635a88e6ded4068eec154d3eb1df4a8 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 9 Dec 2018 13:59:25 -0800 Subject: [PATCH] Fix compilation with LibreSSL < 2.7.0 LibreSSL was stubborn and did not implement all of OpenSSL 1.1 despite advertising support for it. Fixed in 2.7.0. Close #1623 --- src/Utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils.cpp b/src/Utils.cpp index 11f32121..ceee05b3 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -29,7 +29,7 @@ #include #include #include -#if OPENSSL_VERSION_NUMBER < 0x10100000L +#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || (LIBRESSL_VERSION_NUMBER < 0x20700000L) #define X509_getm_notBefore X509_get_notBefore #define X509_getm_notAfter X509_get_notAfter #endif