OpenSSL: Fix up rb_init_ssl() to use proper define from openssl_ratbox.h
This commit is contained in:
parent
62fc0eab03
commit
cc04fbe3f9
1 changed files with 4 additions and 6 deletions
|
@ -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
|
||||
|
||||
rb_lib_log("%s: OpenSSL backend initialised", __func__);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue