diff options
| author | 2021-09-07 14:05:27 +0100 | |
|---|---|---|
| committer | 2021-09-07 14:07:00 +0100 | |
| commit | f6b26f74f211368e2ca30dcd4dd5b52bba75d18e (patch) | |
| tree | 2b1e551f759053eeb7e0fcee858ac8122f5afeec /src | |
| parent | Use the network name as the description when hideserver is enabled. (diff) | |
| download | inspircd++-f6b26f74f211368e2ca30dcd4dd5b52bba75d18e.tar.gz inspircd++-f6b26f74f211368e2ca30dcd4dd5b52bba75d18e.tar.bz2 inspircd++-f6b26f74f211368e2ca30dcd4dd5b52bba75d18e.zip | |
Fix ssl_openssl on a broken fork of OpenSSL.
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules/extra/m_ssl_openssl.cpp | 4 |
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 |
