From: William Lallemand Date: Tue, 19 Jul 2022 16:13:29 +0000 (+0200) Subject: MINOR: init: load OpenSSL error strings X-Git-Tag: v2.7-dev3~78 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3b8bafd4a74519c914e47845ec11700202475f2a;p=thirdparty%2Fhaproxy.git MINOR: init: load OpenSSL error strings Load OpenSSL Error strings in order to be able to output reason strings. This is mandatory to be able to use ERR_reason_error_string(). --- diff --git a/src/haproxy.c b/src/haproxy.c index a2a7376730..1d0fa33682 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -2222,8 +2222,10 @@ static void init(int argc, char **argv) cfg_run_diagnostics(); } - /* Initialize the random generators */ #ifdef USE_OPENSSL + /* Initialize the error strings of OpenSSL */ + SSL_load_error_strings(); + /* Initialize SSL random generator. Must be called before chroot for * access to /dev/urandom, and before ha_random_boot() which may use * RAND_bytes().