mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
BUILD: ssl: guard ecdh functions with SSL_CTX_set_tmp_ecdh macro
let us use feature macro SSL_CTX_set_tmp_ecdh instead of comparing openssl version
This commit is contained in:
parent
8cd1627599
commit
a0fd35b054
1 changed files with 1 additions and 1 deletions
|
|
@ -722,7 +722,7 @@ static int bind_parse_curves(char **args, int cur_arg, struct proxy *px, struct
|
|||
/* parse the "ecdhe" bind keyword keyword */
|
||||
static int ssl_bind_parse_ecdhe(char **args, int cur_arg, struct proxy *px, struct ssl_bind_conf *conf, int from_cli, char **err)
|
||||
{
|
||||
#if HA_OPENSSL_VERSION_NUMBER < 0x0090800fL
|
||||
#if !defined(SSL_CTX_set_tmp_ecdh)
|
||||
memprintf(err, "'%s' : library does not support elliptic curve Diffie-Hellman (too old)", args[cur_arg]);
|
||||
return ERR_ALERT | ERR_FATAL;
|
||||
#elif defined(OPENSSL_NO_ECDH)
|
||||
|
|
|
|||
Loading…
Reference in a new issue