Skip to content

mod_http3: Answer ap_ssl_var_lookup() for HTTP/3 connections - #1078

Open
arturobernalg wants to merge 1 commit into
apache:trunkfrom
arturobernalg:fix/httpd-h3-ssl-var-lookup
Open

arturobernalg wants to merge 1 commit into
apache:trunkfrom
arturobernalg:fix/httpd-h3-ssl-var-lookup

Conversation

@arturobernalg

Copy link
Copy Markdown
Member

Over HTTP/3, mod_ssl does not manage the connection, so ap_ssl_var_lookup() returned HTTPS "off" and empty SSL_ variables (%{SSL:SSL_PROTOCOL} in mod_rewrite, %{SSL_PROTOCOL}s in mod_headers, ...).

mod_http3 now answers HTTPS and the SSL_ variables it already exports to the environment (one shared table for both). Other names still fall through to mod_ssl.

Not covered: %{SSL_*} in ap_expr and SSLRequire go through mod_ssl directly; SSL_TLS_SNI / SSL_CLIENT_* need data from the QUIC layer. Follow-up.

Test: test_102_env.py TestSslVarLookup, fails on trunk, passes with the fix.

mod_ssl does not manage the QUIC connection, so over HTTP/3 it reported
HTTPS as "off" and every SSL_ variable as empty to mod_rewrite
%{SSL:...}, mod_headers %{...}s and the other ap_ssl_var_lookup()
callers. Answer HTTPS and the SSL_ variables HTTP/3 already exports to
the environment; anything else still falls through to mod_ssl.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant