mirror of
https://github.com/znc/znc.git
synced 2026-05-03 12:02:30 +02:00
Follow SSL Cipher Server Preference
This commit is contained in:
@@ -40,6 +40,7 @@ static CString ZNC_DefaultCipher() {
|
||||
CZNCSock::CZNCSock(int timeout) : Csock(timeout) {
|
||||
#ifdef HAVE_LIBSSL
|
||||
DisableSSLCompression();
|
||||
FollowSSLCipherServerPreference();
|
||||
DisableSSLProtocols(CZNC::Get().GetDisabledSSLProtocols());
|
||||
CString sCipher = CZNC::Get().GetSSLCiphers();
|
||||
if (sCipher.empty()) {
|
||||
@@ -52,6 +53,7 @@ CZNCSock::CZNCSock(int timeout) : Csock(timeout) {
|
||||
CZNCSock::CZNCSock(const CString& sHost, u_short port, int timeout) : Csock(sHost, port, timeout) {
|
||||
#ifdef HAVE_LIBSSL
|
||||
DisableSSLCompression();
|
||||
FollowSSLCipherServerPreference();
|
||||
DisableSSLProtocols(CZNC::Get().GetDisabledSSLProtocols());
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user