BUILD: make tune.ssl.keylog available again
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 9 Jun 2021 14:46:12 +0000 (16:46 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 9 Jun 2021 15:10:13 +0000 (17:10 +0200)
commit722180aca8757d8807b21cf125a2d68249be5bf8
tree75d1808be430fbc53ec6c3b95ad6ff0f366afdc4
parent871ef2ffbce6b8488d330127551ef90ae38e4a30
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.
include/haproxy/openssl-compat.h
include/haproxy/ssl_sock-t.h
src/cfgparse-ssl.c
src/ssl_sample.c
src/ssl_sock.c