]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: proxy: fix default ALPN bind settings quic-interop flx04/quic-interop
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 9 Feb 2026 12:36:59 +0000 (13:36 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 9 Feb 2026 12:52:25 +0000 (13:52 +0100)
For "add backend" implementation, postparsing code in
check_config_validity() from cfgparse.c has been extracted in a new
dedicated function named proxy_finalize() into proxy.c.

This has caused unexpected compilation issue as in the latter file
TLSEXT_TYPE_application_layer_protocol_negotiation macro may be
undefined, in particular when building without QUIC support. Thus, code
related to default ALPN on binds is discarded after the preprocessing
stage.

Fix this by including openssl-compat header file into proxy source file.
This should be sufficient to ensure SSL related defines are properly
included.

This should fix recent issues on SSL regtests.

No need to backport.

src/proxy.c

index 3529085ee7195e21c6e85ac4a904bbdd2abff63a..06c3fb877d226dceef645f4e4da8c345a205782c 100644 (file)
@@ -47,6 +47,7 @@
 #include <haproxy/lb_ss.h>
 #include <haproxy/log.h>
 #include <haproxy/obj_type-t.h>
+#include <haproxy/openssl-compat.h> /* required for TLSEXT_TYPE_application_layer_protocol_negotiation */
 #include <haproxy/peers.h>
 #include <haproxy/pool.h>
 #include <haproxy/protocol.h>