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,10 +358,10 @@ rb_init_ssl(void)
|
||||||
{
|
{
|
||||||
char libratbox_data[] = "libratbox data";
|
char libratbox_data[] = "libratbox data";
|
||||||
|
|
||||||
#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
|
|
||||||
/*
|
/*
|
||||||
* OpenSSL 1.1.0 and above automatically initialises itself with sane defaults
|
* 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_library_init();
|
||||||
SSL_load_error_strings();
|
SSL_load_error_strings();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue