BUILD: SSL: fine guard for SSL_CTX_add_server_custom_ext call
authorIlya Shipitsin <chipitsine@gmail.com>
Thu, 26 Nov 2020 21:39:48 +0000 (02:39 +0500)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Jan 2021 12:48:21 +0000 (13:48 +0100)
commite7f81bca61a189b516969b6a19947ed4d69a72ae
tree0227d98205cdc09fd006746f570ab700bea08b8a
parentf13c7dbe51f3eda453c6aa596b3b56e2274c106d
BUILD: SSL: fine guard for SSL_CTX_add_server_custom_ext call

SSL_CTX_add_server_custom_ext is openssl specific function present
since openssl-1.0.2, let us define readable guard for it, not depending
on HA_OPENSSL_VERSION

(cherry picked from commit ec609098718b9c1cd803ca57442b2b98c9ba4a16)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
include/haproxy/openssl-compat.h
src/ssl_sock.c