mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-07 22:12:08 +00:00
BUILD: ssl: more elegant anti-replay feature presence check
Instead of tracking the version number to figure whether SSL_OP_NO_ANTI_REPLAY is defined, simply rely on its definition.
This commit is contained in:
parent
9bf2a1be89
commit
e9ff8992a1
@ -4694,7 +4694,7 @@ ssl_sock_initial_ctx(struct bind_conf *bind_conf)
|
||||
#ifdef OPENSSL_IS_BORINGSSL
|
||||
SSL_CTX_set_select_certificate_cb(ctx, ssl_sock_switchctx_cbk);
|
||||
SSL_CTX_set_tlsext_servername_callback(ctx, ssl_sock_switchctx_err_cbk);
|
||||
#elif (HA_OPENSSL_VERSION_NUMBER >= 0x10101000L)
|
||||
#elif defined(SSL_OP_NO_ANTI_REPLAY)
|
||||
if (bind_conf->ssl_conf.early_data)
|
||||
SSL_CTX_set_options(ctx, SSL_OP_NO_ANTI_REPLAY);
|
||||
SSL_CTX_set_client_hello_cb(ctx, ssl_sock_switchctx_cbk, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user