OpenSSL: Initialise if LibreSSL
LibreSSL's definition of OPENSSL_VERSION_NUMBER bites us in the ass, *again*.
This commit is contained in:
parent
6008896554
commit
f92b4d81d4
1 changed files with 2 additions and 2 deletions
|
@ -358,13 +358,13 @@ rb_init_ssl(void)
|
|||
{
|
||||
char libratbox_data[] = "libratbox 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
|
||||
|
||||
libratbox_index = SSL_get_ex_new_index(0, libratbox_data, NULL, NULL, NULL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue