MINOR: ssl: Remove call to ERR_load_SSL_strings with OpenSSLv3

Starting from OpenSSLv3, error strings are loaded automatically so
ERR_load_SSL_strings is not needed anymore and was marked as deprecated.
This commit is contained in:
Remi Tricot-Le Breton 2022-02-11 12:04:45 +01:00 committed by William Lallemand
parent 1effd9aa09
commit 78a36e3344

View File

@ -7786,8 +7786,10 @@ static void __ssl_sock_init(void)
#ifndef OPENSSL_NO_ENGINE
hap_register_post_deinit(ssl_free_engines);
#endif
#if HA_OPENSSL_VERSION_NUMBER < 0x3000000fL
/* Load SSL string for the verbose & debug mode. */
ERR_load_SSL_strings();
#endif
ha_meth = BIO_meth_new(0x666, "ha methods");
BIO_meth_set_write(ha_meth, ha_ssl_write);
BIO_meth_set_read(ha_meth, ha_ssl_read);