public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/httpd] f43: mod_ssl: SSLVHostSNIPolicy - Fix handling of STRICT mode
@ 2026-10-01 16:46
0 siblings, 0 replies; only message in thread
From: @ 2026-10-01 16:46 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/httpd
Branch : f43
Commit : fb46d5df49d5e1b081507d639f028fd2fda0d267
Author : Luboš Uhliarik <luhliari@redhat.com>
Date : 2025-11-12T11:16:19+01:00
Stats : +25/-21 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/httpd/c/fb46d5df49d5e1b081507d639f028fd2fda0d267?branch=f43
Log:
mod_ssl: SSLVHostSNIPolicy - Fix handling of STRICT mode
---
diff --git a/httpd-2.4.65-sslvhostsnipolicy.patch b/httpd-2.4.65-sslvhostsnipolicy.patch
index 6767cbc..0831efc 100644
--- a/httpd-2.4.65-sslvhostsnipolicy.patch
+++ b/httpd-2.4.65-sslvhostsnipolicy.patch
@@ -1,7 +1,7 @@
-From ba168444686368377c6e69373e20e6dae8ebb702 Mon Sep 17 00:00:00 2001
+From 0263d1e290bc029c5c059fdaa4f21ca9885f9c84 Mon Sep 17 00:00:00 2001
From: Joe Orton <jorton@apache.org>
-Date: Tue, 4 Nov 2025 12:49:36 +0100
-Subject: [PATCH] [PATCH] mod_ssl: Add SSLVHostSNIPolicy directive to set the
+Date: Wed, 12 Nov 2025 11:11:41 +0100
+Subject: [PATCH] mod_ssl: Add SSLVHostSNIPolicy directive to set the
compatibility level required for VirtualHost matching.
For "secure" and "authonly" modes, a hash of the policy-relevant vhost
@@ -26,13 +26,13 @@ the runtime code complexity (and overhead).
PR: 69743
GitHub: closes #561
---
- docs/manual/mod/mod_ssl.html.en | 77 +++++++++++++++++++
+ docs/manual/mod/mod_ssl.html.en | 77 ++++++++++++++++++
modules/ssl/mod_ssl.c | 2 +
modules/ssl/ssl_engine_config.c | 41 ++++++++++
- modules/ssl/ssl_engine_init.c | 107 ++++++++++++++++++++++++++
- modules/ssl/ssl_engine_kernel.c | 131 ++++++--------------------------
- modules/ssl/ssl_private.h | 17 +++++
- 6 files changed, 266 insertions(+), 109 deletions(-)
+ modules/ssl/ssl_engine_init.c | 107 +++++++++++++++++++++++++
+ modules/ssl/ssl_engine_kernel.c | 133 ++++++--------------------------
+ modules/ssl/ssl_private.h | 17 ++++
+ 6 files changed, 267 insertions(+), 110 deletions(-)
diff --git a/docs/manual/mod/mod_ssl.html.en b/docs/manual/mod/mod_ssl.html.en
index e2a4a99..95f0667 100644
@@ -60,7 +60,7 @@ index e2a4a99..95f0667 100644
+<tr><th><a href="directive-dict.html#Context">Context:</a></th><td>server config</td></tr>
+<tr><th><a href="directive-dict.html#Status">Status:</a></th><td>Extension</td></tr>
+<tr><th><a href="directive-dict.html#Module">Module:</a></th><td>mod_ssl</td></tr>
-+<tr><th><a href="directive-dict.html#Compatibility">Compatibility:</a></th><td>Available in httpd 2.4.65 and later</td></tr>
++<tr><th><a href="directive-dict.html#Compatibility">Compatibility:</a></th><td>Available in httpd 2.4.65 in Fedora Linux</td></tr>
+</table><p>This directive sets the policy applied when checking whether the
+<code class="directive"><a href="../mod/core.html#virtualhost"><VirtualHost></a></code>
+identified by the <code>Host</code> request header in an HTTP request
@@ -334,7 +334,7 @@ index 2fbd076..1bf6ac4 100644
/*
diff --git a/modules/ssl/ssl_engine_kernel.c b/modules/ssl/ssl_engine_kernel.c
-index 33aa1f7..a6af633 100644
+index 33aa1f7..83ae90e 100644
--- a/modules/ssl/ssl_engine_kernel.c
+++ b/modules/ssl/ssl_engine_kernel.c
@@ -101,112 +101,28 @@ static int fill_reneg_buffer(request_rec *r, SSLDirConfigRec *dc)
@@ -371,7 +371,10 @@ index 33aa1f7..a6af633 100644
- }
- return 1;
-}
--
++ /* Policy: strict => fail for any vhost transition. */
++ if (policy == MODSSL_SNIVH_STRICT)
++ return sc1 == sc2;
+
-static int ssl_pk_server_compatible(modssl_pk_server_t *pks1,
- modssl_pk_server_t *pks2)
-{
@@ -395,7 +398,10 @@ index 33aa1f7..a6af633 100644
- }
- return 1;
-}
--
++ /* For authonly/secure policy, compare the hash. */
++ AP_DEBUG_ASSERT(sc1->sni_policy_hash);
++ AP_DEBUG_ASSERT(sc2->sni_policy_hash);
+
-static int ssl_auth_compatible(modssl_auth_ctx_t *a1,
- modssl_auth_ctx_t *a2)
-{
@@ -440,21 +446,16 @@ index 33aa1f7..a6af633 100644
- || (ctx1->protocol != ctx2->protocol)
- || !ssl_auth_compatible(&ctx1->auth, &ctx2->auth)
- || !ssl_pk_server_compatible(ctx1->pks, ctx2->pks)) {
-+ /* Policy: strict => fail for any vhost transition. */
-+ if (policy == MODSSL_SNIVH_STRICT && sc1 != sc2)
- return 0;
+- return 0;
- }
- return 1;
-}
-
+-
-static int ssl_server_compatible(server_rec *s1, server_rec *s2)
-{
- SSLSrvConfigRec *sc1 = s1? mySrvConfig(s1) : NULL;
- SSLSrvConfigRec *sc2 = s2? mySrvConfig(s2) : NULL;
-+ /* For authonly/secure policy, compare the hash. */
-+ AP_DEBUG_ASSERT(sc1->sni_policy_hash);
-+ AP_DEBUG_ASSERT(sc2->sni_policy_hash);
-
+-
- /* both use the same TLS protocol? */
- if (!sc1 || !sc2
- || !ssl_ctx_compatible(sc1->server, sc2->server)) {
diff --git a/httpd.spec b/httpd.spec
index 6d06795..9d762d8 100644
--- a/httpd.spec
+++ b/httpd.spec
@@ -31,7 +31,7 @@
Summary: Apache HTTP Server
Name: httpd
Version: 2.4.65
-Release: 2%{?dist}
+Release: 3%{?dist}
URL: https://httpd.apache.org/
Source0: https://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2
Source1: https://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2.asc
@@ -847,6 +847,9 @@ exit $rv
%{_rpmconfigdir}/macros.d/macros.httpd
%changelog
+* Wed Nov 12 2025 Luboš Uhliarik <luhliari@redhat.com> - 2.4.65-3
+- mod_ssl: SSLVHostSNIPolicy - Fix handling of STRICT mode
+
* Tue Nov 04 2025 Luboš Uhliarik <luhliari@redhat.com> - 2.4.65-2
- mod_ssl: Add SSLVHostSNIPolicy directive to set the compatibility level
required for VirtualHost matching.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-01 16:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-01 16:46 [rpms/httpd] f43: mod_ssl: SSLVHostSNIPolicy - Fix handling of STRICT mode
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox