From 9b9d0720e10a4407a0ceb3116f47493bc4d03381 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 7 Aug 2025 17:06:45 +0200 Subject: [PATCH] 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. --- src/backend.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/backend.c b/src/backend.c index 5e757ae76..1605e766a 100644 --- a/src/backend.c +++ b/src/backend.c @@ -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