CLEANUP: backend: simplify the complex ifdef related to 0RTT in connect_server()

Since 3.0 we have HAVE_SSL_0RTT precisely to avoid checking horribly
complicated and unmaintainable conditions to detect support for 0RTT.
Let's just drop the complex condition and use the macro instead.
This commit is contained in:
Willy Tarreau 2025-08-07 17:06:45 +02:00 committed by Olivier Houchard
parent 4aaf0bfbce
commit 9b9d0720e1

View file

@ -2164,8 +2164,7 @@ int connect_server(struct stream *s)
}
}
#if defined(USE_OPENSSL) && (defined(OPENSSL_IS_BORINGSSL) || (HA_OPENSSL_VERSION_NUMBER >= 0x10101000L))
#if defined(HAVE_SSL_0RTT)
if (!reuse && cli_conn && srv && srv_conn->mux &&
(srv->ssl_ctx.options & SRV_SSL_O_EARLY_DATA) &&
/* Only attempt to use early data if either the client sent