]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Prevent QUIC build with OpenSSL 3.5 new QUIC API version < 3.5.1
authorFrederic Lecaille <flecaille@haproxy.com>
Wed, 9 Jul 2025 12:31:36 +0000 (14:31 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Wed, 9 Jul 2025 14:01:02 +0000 (16:01 +0200)
The QUIC listener part was impacted by the 3.5.0 OpenSSL new QUIC API with several
issues which have been fixed by 3.5.1.

Add a #error to prevent such OpenSSL 3.5 new QUIC API use with version below 3.5.1.

Must be backported to 3.2.

include/haproxy/openssl-compat.h

index 97a1b7e88dc4782b55da8f4ed085cdf9ca97691d..7b072bec8af09d590f9f36c7e5a0ef496d2dccce 100644 (file)
 /* This macro is defined by the new OpenSSL 3.5.0 QUIC TLS API and it is not
  * defined by quictls.
  */
+
+#if defined(USE_QUIC) && (OPENSSL_VERSION_NUMBER < 0x30500010L)
+#error "OpenSSL 3.5 QUIC API should only be used with OpenSSL 3.5.1 version and newer"
+#endif
+
 #define HAVE_OPENSSL_QUIC
 #define SSL_set_quic_transport_params   SSL_set_quic_tls_transport_params
 #define SSL_set_quic_early_data_enabled SSL_set_quic_tls_early_data_enabled