BUILD: ssl: simplify SSL_CTX_set_ecdh_auto compatibility
authorEmmanuel Hocdet <manu@gandi.net>
Mon, 20 Mar 2017 10:11:49 +0000 (11:11 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 20 Mar 2017 11:01:34 +0000 (12:01 +0100)
commita52bb15cc78ecf07f2c4be3f6e5aba417dafd098
treeb66545d0e228002b170b2bcdd79a64bbbd0ae396
parent00f55524e0b215e17d82a00c0faa58efc8eafd81
BUILD: ssl: simplify SSL_CTX_set_ecdh_auto compatibility

SSL_CTX_set_ecdh_auto is declared (when present) with #define. A simple #ifdef
avoid to list all cases of ssllibs. It's a placebo in new ssllibs. It's ok with
openssl 1.0.1, 1.0.2, 1.1.0, libressl and boringssl.
Thanks to Piotr Kubaj for postponing and testing with libressl.
include/proto/openssl-compat.h
src/ssl_sock.c