mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 19:19:02 -04:00
m_ssl_openssl Use the system default cipher list if no cipher list is specifed
This commit is contained in:
parent
74ee9af966
commit
73a4a37376
@ -198,13 +198,16 @@ class ModuleSSLOpenSSL : public Module
|
||||
throw ModuleException("Unknown hash type " + hash);
|
||||
use_sha = (hash == "sha1");
|
||||
|
||||
std::string ciphers = conf->getString("ciphers", "ALL");
|
||||
if ((!SSL_CTX_set_cipher_list(ctx, ciphers.c_str())) || (!SSL_CTX_set_cipher_list(clictx, ciphers.c_str())))
|
||||
{
|
||||
ServerInstance->Logs->Log("m_ssl_openssl",DEFAULT, "m_ssl_openssl.so: Can't set cipher list to %s.", ciphers.c_str());
|
||||
ERR_print_errors_cb(error_callback, this);
|
||||
}
|
||||
std::string ciphers = conf->getString("ciphers", "");
|
||||
|
||||
if (!ciphers.empty())
|
||||
{
|
||||
if ((!SSL_CTX_set_cipher_list(ctx, ciphers.c_str())) || (!SSL_CTX_set_cipher_list(clictx, ciphers.c_str())))
|
||||
{
|
||||
ServerInstance->Logs->Log("m_ssl_openssl",DEFAULT, "m_ssl_openssl.so: Can't set cipher list to %s.", ciphers.c_str());
|
||||
ERR_print_errors_cb(error_callback, this);
|
||||
}
|
||||
}
|
||||
|
||||
/* Load our keys and certificates
|
||||
* NOTE: OpenSSL's error logging API sucks, don't blame us for this clusterfuck.
|
||||
|
Loading…
x
Reference in New Issue
Block a user