OpenSSL: Initialise if LibreSSL
LibreSSL's definition of OPENSSL_VERSION_NUMBER bites us in the ass, *again*.
This commit is contained in:
parent
572c2d4b05
commit
94f114641c
1 changed files with 2 additions and 2 deletions
|
@ -357,13 +357,13 @@ rb_init_ssl(void)
|
|||
{
|
||||
char librb_data[] = "librb data";
|
||||
|
||||
#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
|
||||
/*
|
||||
* OpenSSL 1.1.0 and above automatically initialises itself with sane defaults
|
||||
*/
|
||||
#if defined(LIBRESSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x10100000L)
|
||||
SSL_library_init();
|
||||
SSL_load_error_strings();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
librb_index = SSL_get_ex_new_index(0, librb_data, NULL, NULL, NULL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue