From e522949012dc8af8fa806921585cc605b16234f3 Mon Sep 17 00:00:00 2001 From: eaglegai Date: Fri, 7 Jan 2022 10:42:17 +0800 Subject: [PATCH] fix build error of 'SSL_PROTOCAL_SSLV3 undeclared' --- backport-httpd-2.4.34-enable-sslv3.patch | 4 +++- httpd.spec | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/backport-httpd-2.4.34-enable-sslv3.patch b/backport-httpd-2.4.34-enable-sslv3.patch index f559bf9..6de40a5 100644 --- a/backport-httpd-2.4.34-enable-sslv3.patch +++ b/backport-httpd-2.4.34-enable-sslv3.patch @@ -2,12 +2,14 @@ diff --git a/modules/ssl/ssl_engine_config.c b/modules/ssl/ssl_engine_config.c index 517ce30..075f7e1 100644 --- a/modules/ssl/ssl_engine_config.c +++ b/modules/ssl/ssl_engine_config.c -@@ -1474,6 +1474,8 @@ static const char *ssl_cmd_protocol_parse(cmd_parms *parms, +@@ -1474,6 +1474,10 @@ static const char *ssl_cmd_protocol_parse(cmd_parms *parms, #endif else if (strcEQ(w, "all")) { thisopt = SSL_PROTOCOL_ALL; ++#ifndef OPENSSL_NO_SSL3 + // by default, ALL kw doesn't turn on SSLv3 + thisopt &= ~SSL_PROTOCOL_SSLV3; ++#endif } else { return apr_pstrcat(parms->temp_pool, diff --git a/httpd.spec b/httpd.spec index 18393d8..e4d0d41 100644 --- a/httpd.spec +++ b/httpd.spec @@ -8,7 +8,7 @@ Name: httpd Summary: Apache HTTP Server Version: 2.4.51 -Release: 1 +Release: 2 License: ASL 2.0 URL: https://httpd.apache.org/ Source0: https://archive.apache.org/dist/httpd/httpd-%{version}.tar.bz2 @@ -501,6 +501,12 @@ exit $rv %{_rpmconfigdir}/macros.d/macros.httpd %changelog +* Fri Jan 07 2022 gaihuiying - 2.4.51-2 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix build error of "SSL_PROTOCAL_SSLV3 undeclared" + * Fri Dec 10 2021 yanglu - 2.4.51-1 - Type:requirement - ID:NA -- Gitee