diff options
author | Sadie Powell <sadie@witchery.services> | 2020-05-15 06:41:23 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-05-15 06:41:23 +0100 |
commit | b36fbe8aa4b1684513152e2527fd02f659fd918e (patch) | |
tree | 20520e94d9e60ccdd7939d4ccc290b2751abfef4 | |
parent | 4c94f5d1794ebb398dcfacf20d0b8de9e184299d (diff) |
Add a warning about LibreSSL support being removed in master.
-rw-r--r-- | src/modules/extra/m_ssl_openssl.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp index d640e98f9..8f29df1e7 100644 --- a/src/modules/extra/m_ssl_openssl.cpp +++ b/src/modules/extra/m_ssl_openssl.cpp @@ -51,6 +51,13 @@ # pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif +// LibreSSL lies about the version of OpenSSL it is compatible with and is a general pain +// 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 +# warning LibreSSL support will be discontinued in the future. Consider using the ssl_gnutls or ssl_mbedtls modules instead. +#endif + // Fix warnings about the use of `long long` on C++03. #if defined __clang__ # pragma clang diagnostic ignored "-Wc++11-long-long" |