MEDIUM: ssl: initialize the SSL stack explicitely
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 12 Mar 2024 11:03:07 +0000 (12:03 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 12 Mar 2024 11:03:07 +0000 (12:03 +0100)
commit7e9e4a8f501191044bf37341b6b5df68219e9e1c
treea508e5018df368fcf8a947320fb6cc4e5c58bd31
parent7223296092c72c2b10729a6da218897887858dba
MEDIUM: ssl: initialize the SSL stack explicitely

In issue #2448, users are complaining that FIPS is not working correctly
since the removal of SSL_library_init().

This was removed because SSL_library_init() is deprecated with OpenSSL
3.x and emits a warning. But the initialization was not needed anymore
because it is done at the first openssl API call.

However it some cases it is needed. SSL_library_init() is now a define
to OPENSSL_init_ssl(0, NULL). This patch adds OPENSSL_init_ssl(0, NULL)
to the init.

This could be backported in every stable branches, however let's wait
before backporting it.
src/ssl_sock.c