BUILD: make tune.ssl.keylog available again
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 9 Jun 2021 14:46:12 +0000 (16:46 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 10 Jun 2021 12:58:18 +0000 (14:58 +0200)
commitb32469435c88ea9715b5e101b12756dd7170929c
tree99efc8ef0c17d2ebb4160535fa6a2753624f25c1
parent192600b2e0087f8ea7ccd81a8ba42b95a20450f7
BUILD: make tune.ssl.keylog available again

Since commit 04a5a44 ("BUILD: ssl: use HAVE_OPENSSL_KEYLOG instead of
OpenSSL versions") the "tune.ssl.keylog" feature is broken because
HAVE_OPENSSL_KEYLOG does not exist.

Replace this by a HAVE_SSL_KEYLOG which is defined in openssl-compat.h.
Also add an error when not built with the right openssl version.

Must be backported as far as 2.3.

(cherry picked from commit 722180aca8757d8807b21cf125a2d68249be5bf8)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit ca5cf0a196ef2e7d1a16ecaeda5f983551604a30)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
include/haproxy/openssl-compat.h
include/haproxy/ssl_sock-t.h
src/cfgparse-ssl.c
src/ssl_sample.c
src/ssl_sock.c