mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-22 06:37:54 -04:00
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:
parent
4aaf0bfbce
commit
9b9d0720e1
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue