From f839d258d0d79064526fac6c726f61fffa316a69 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 31 Oct 2019 18:44:35 -0700 Subject: [PATCH] Fix redefinition error under OpenSSL LIBRESSL_VERSION_NUMBER is 0 when not defined, making the condition always true. Close #1688 --- src/Utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils.cpp b/src/Utils.cpp index ceee05b3..762416f3 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -29,7 +29,7 @@ #include #include #include -#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || (LIBRESSL_VERSION_NUMBER < 0x20700000L) +#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || (defined(LIBRESSL_VERSION_NUMBER) && (LIBRESSL_VERSION_NUMBER < 0x20700000L)) #define X509_getm_notBefore X509_get_notBefore #define X509_getm_notAfter X509_get_notAfter #endif