aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Peter Powell2016-11-23 17:24:28 +0000
committerGravatar Peter Powell2016-11-23 17:24:28 +0000
commit596c41702569b4ffe7360dbb123f14b4fc57caed (patch)
treeb444c3e9c3e1fdec702ea6a66160b11c8948472e /src
parentMerge pull request #1234 from SaberUK/master+config2 (diff)
downloadinspircd++-596c41702569b4ffe7360dbb123f14b4fc57caed.tar.gz
inspircd++-596c41702569b4ffe7360dbb123f14b4fc57caed.tar.bz2
inspircd++-596c41702569b4ffe7360dbb123f14b4fc57caed.zip
Fix LibreSSL not having a shim for the OpenSSL 1.1 BIO API.
Diffstat (limited to 'src')
-rw-r--r--src/modules/extra/m_ssl_openssl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp
index 370f855ed..bda9180b7 100644
--- a/src/modules/extra/m_ssl_openssl.cpp
+++ b/src/modules/extra/m_ssl_openssl.cpp
@@ -59,7 +59,7 @@
#endif
// BIO is opaque in OpenSSL 1.1 but the access API does not exist in 1.0 and older.
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if ((defined LIBRESSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x10100000L))
# define BIO_get_data(BIO) BIO->ptr
# define BIO_set_data(BIO, VALUE) BIO->ptr = VALUE;
# define BIO_set_init(BIO, VALUE) BIO->init = VALUE;