From 64640d7574753c75840760d9ad39b527e73abfa0 Mon Sep 17 00:00:00 2001 From: Soner Tari Date: Thu, 14 Oct 2021 23:34:53 +0300 Subject: [PATCH] Fix build with LibreSSL 3.4.1 on OpenBSD 7.0 --- NEWS.md | 4 ++++ src/ssl.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index eb70da1..c307146 100644 --- a/NEWS.md +++ b/NEWS.md @@ -25,6 +25,10 @@ - Add Include config option for loading configuration from an include file. - Add -Q test config option. + Note: The UTMFW project provides the SSLproxy Rule Editor, SPRE, which can + be used to configure proxyspecs, filtering rules, and options, similar to + the PF Rule Editor, PFRE, for OpenBSD/pf. + ### SSLproxy 0.8.4 2021-08-29 diff --git a/src/ssl.h b/src/ssl.h index 34ce4bb..38305fb 100644 --- a/src/ssl.h +++ b/src/ssl.h @@ -83,7 +83,7 @@ #define OPENSSL_NO_SHA0 #endif -#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER) +#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20701000L) #if LIBRESSL_VERSION_NUMBER >= 0x2050100fL #define SSL_is_server(ssl) ((ssl)->server) #else /* < LibreSSL 2.5.1 and OpenSSL < 1.1.0 */