aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-09-07 14:05:27 +0100
committerGravatar Sadie Powell2021-09-07 14:07:00 +0100
commitf6b26f74f211368e2ca30dcd4dd5b52bba75d18e (patch)
tree2b1e551f759053eeb7e0fcee858ac8122f5afeec /src/modules
parentUse the network name as the description when hideserver is enabled. (diff)
downloadinspircd++-f6b26f74f211368e2ca30dcd4dd5b52bba75d18e.tar.gz
inspircd++-f6b26f74f211368e2ca30dcd4dd5b52bba75d18e.tar.bz2
inspircd++-f6b26f74f211368e2ca30dcd4dd5b52bba75d18e.zip
Fix ssl_openssl on a broken fork of OpenSSL.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/extra/m_ssl_openssl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp
index 4b76ada89..d5d29d51c 100644
--- a/src/modules/extra/m_ssl_openssl.cpp
+++ b/src/modules/extra/m_ssl_openssl.cpp
@@ -56,6 +56,8 @@
// to support. Support for it was removed in the master branch at the same time that
// support for OpenSSL pre-1.1 was.
#if defined __GNUC__ && defined LIBRESSL_VERSION_NUMBER
+# undef OPENSSL_VERSION_NUMBER
+# define OPENSSL_VERSION_NUMBER 0x10000000L
# warning LibreSSL support will be discontinued in the future. Consider using the ssl_gnutls or ssl_mbedtls modules instead.
#endif
@@ -80,7 +82,7 @@
#endif
// Compatibility layer to allow OpenSSL 1.0 to use the 1.1 API.
-#if ((defined LIBRESSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x10100000L))
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
// BIO is opaque in OpenSSL 1.1 but the access API does not exist in 1.0.
# define BIO_get_data(BIO) BIO->ptr