From f92b4d81d44580cd6df2d0b2f3cdfd7ad067ecd4 Mon Sep 17 00:00:00 2001 From: Aaron Jones Date: Thu, 1 Sep 2016 19:28:18 +0000 Subject: [PATCH] OpenSSL: Initialise if LibreSSL LibreSSL's definition of OPENSSL_VERSION_NUMBER bites us in the ass, *again*. --- libratbox/src/openssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libratbox/src/openssl.c b/libratbox/src/openssl.c index 1a3cf9a9..64a446b0 100644 --- a/libratbox/src/openssl.c +++ b/libratbox/src/openssl.c @@ -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);