BUG/MINOR: ssl: put ssl_sock_load_ca under SSL_NO_GENERATE_CERTIFICATES
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Thu, 23 Jan 2025 12:46:46 +0000 (13:46 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 28 Jan 2025 13:59:20 +0000 (14:59 +0100)
commit5d3f2aba73c73329bc41a167ce931e8d03e5f28b
tree1fbd3f1bc42173819f137cda943e7f6bcf62c95d
parent2596916866366099c2cce22b26387598e995b724
BUG/MINOR: ssl: put ssl_sock_load_ca under SSL_NO_GENERATE_CERTIFICATES

ssl_sock_load_ca and ssl_sock_free_ca definitions are compiled only, if
SSL_NO_GENERATE_CERTIFICATES is not set. In case, when we set this define and
build haproxy, linker throws an error. So, let's fix this.

This should be backported in all stable versions.

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