diff --git a/include/haproxy/openssl-compat.h b/include/haproxy/openssl-compat.h index 97a1b7e88..7b072bec8 100644 --- a/include/haproxy/openssl-compat.h +++ b/include/haproxy/openssl-compat.h @@ -52,6 +52,11 @@ /* 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