aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-08-07 13:45:26 +0100
committerGravatar Sadie Powell2021-08-07 13:45:26 +0100
commit8de48c3ada5fc787fd6259e022a07bd2a6f577b0 (patch)
tree880777d8307f30a0eb16123787eda952d3329303 /src
parentRelease v4.0.0 alpha 3. (diff)
downloadinspircd++-8de48c3ada5fc787fd6259e022a07bd2a6f577b0.tar.gz
inspircd++-8de48c3ada5fc787fd6259e022a07bd2a6f577b0.tar.bz2
inspircd++-8de48c3ada5fc787fd6259e022a07bd2a6f577b0.zip
Remove the use of a deprecated OpenSSL method.
Diffstat (limited to 'src')
-rw-r--r--src/modules/extra/m_ssl_openssl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp
index 6c656384a..2d2f4c991 100644
--- a/src/modules/extra/m_ssl_openssl.cpp
+++ b/src/modules/extra/m_ssl_openssl.cpp
@@ -351,8 +351,8 @@ namespace OpenSSL
Profile(const std::string& profilename, std::shared_ptr<ConfigTag> tag)
: name(profilename)
, dh(ServerInstance->Config->Paths.PrependConfig(tag->getString("dhfile", "dhparams.pem", 1)))
- , ctx(SSL_CTX_new(SSLv23_server_method()))
- , clientctx(SSL_CTX_new(SSLv23_client_method()))
+ , ctx(SSL_CTX_new(TLS_server_method()))
+ , clientctx(SSL_CTX_new(TLS_client_method()))
, allowrenego(tag->getBool("renegotiation")) // Disallow by default
, outrecsize(static_cast<unsigned int>(tag->getUInt("outrecsize", 2048, 512, 16384)))
{