]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: server: reject QUIC servers without explicit SSL
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 12 Jun 2025 14:16:43 +0000 (16:16 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 12 Jun 2025 14:16:43 +0000 (16:16 +0200)
commit830affc17d65688fce1e7015bb88d133b8b9be32
tree94843c1bbffcb6a8c0735cea68c76d7f50277ff4
parent33cd96a5e9fb4f2e17401c69fd3ecfc1f46b02e2
MINOR: server: reject QUIC servers without explicit SSL

Report an error during server configuration if QUIC is used by SSL is
not activiated via 'ssl' keyword. This is done in _srv_parse_finalize(),
which is both used by static and dynamic servers.

Note that contrary to listeners, an error is reported instead of a
warning, and SSL is not automatically activated if missing. This is
mainly due to the complex server configuration : _srv_parse_finalize()
is ideal to affect every servers, including dynamic entries. However, it
is executed after server SSL context allocation performed via
<prepare_srv> XPRT operation. A proper fix would be to move SSL ctx
alloc in _srv_parse_finalize(), but this may have unknown impact. Thus,
for now a simpler solution has been chosen.
src/server.c