--- a/content/fetchers/about/certificate.c +++ b/content/fetchers/about/certificate.c @@ -137,7 +137,8 @@ static nserror free_ns_cert_info(struct ns_cert_info *cinfo) /* OpenSSL 1.0.x, 1.0.2, 1.1.0 and 1.1.1 API all changed * LibreSSL declares its OpenSSL version as 2.1 but only supports 1.0.x API */ -#if (defined(LIBRESSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x1010000fL)) +#if (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x3050000fL) || \ + (OPENSSL_VERSION_NUMBER < 0x1010000fL) /* 1.0.x */ #if (defined(LIBRESSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x1000200fL)) --- a/content/fetchers/curl.c +++ b/content/fetchers/curl.c @@ -98,7 +98,7 @@ /* OpenSSL 1.0.x to 1.1.0 certificate reference counting changed * LibreSSL declares its OpenSSL version as 2.1 but only supports the old way */ -#if (defined(LIBRESSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x1010000fL)) +#if (OPENSSL_VERSION_NUMBER < 0x1010000fL) static int ns_X509_up_ref(X509 *cert) { cert->references++;