BUILD: ssl: allow to build without the renegotiation API of WolfSSL
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 28 Jan 2025 17:27:31 +0000 (18:27 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 28 Jan 2025 17:43:02 +0000 (18:43 +0100)
commit76cb3e6a855d014ff6a344d81bc52c0df6acdff3
tree742d7bdcd59d558121c7c0d6d03342ae724d0fd7
parentfa3de37d1b31d93add2a44e34da190737a688ef0
BUILD: ssl: allow to build without the renegotiation API of WolfSSL

In ticket https://github.com/wolfSSL/wolfssl/issues/6834, it was
suggested to push --enable-haproxy within --enable-distro.

WolfSSL does not want to include the renegotiation support in
--enable-distro.

To achieve this, let haproxy build without SSL_renegotiate_pending()
when wolfssl does not define HAVE_SECURE_RENEGOCIATION or
HAVE_SERVER_RENEGOCIATION_INFO.

(cherry picked from commit c6a8279cdfc3272e34feb256ed9e4601e0a104db)
Signed-off-by: William Lallemand <wlallemand@haproxy.com>
include/haproxy/openssl-compat.h