OpenSSL: Fix up rb_init_ssl() to use proper define from openssl_ratbox.h

This commit is contained in:
Aaron Jones 2016-09-15 17:16:40 +00:00
parent 62fc0eab03
commit cc04fbe3f9
No known key found for this signature in database
GPG key ID: EC6F86EE9CD840B5

View file

@ -367,14 +367,12 @@ rb_ssl_shutdown(rb_fde_t *const F)
int
rb_init_ssl(void)
{
/*
* OpenSSL 1.1.0 and above automatically initialises itself with sane defaults
*/
#if defined(LIBRESSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x10100000L)
SSL_library_init();
#ifndef LRB_SSL_NO_EXPLICIT_INIT
(void) SSL_library_init();
SSL_load_error_strings();
#endif
#endif
rb_lib_log("%s: OpenSSL backend initialised", __func__);
return 1;
}