Repository navigation
mod_http3: Answer ap_ssl_var_lookup() for HTTP/3 connections - #1078
Open
arturobernalg wants to merge 1 commit into
Open
arturobernalg wants to merge 1 commit into
arturobernalg wants to merge 1 commit into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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}sin 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.