mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Honor SSL ciphers in ZNC->Server connections
This commit is contained in:
@@ -34,10 +34,6 @@ CZNCSock::CZNCSock(const CString& sHost, u_short port, int timeout) : Csock(sHos
|
||||
#ifdef HAVE_LIBSSL
|
||||
DisableSSLCompression();
|
||||
DisableSSLProtocols(CZNC::Get().GetDisabledSSLProtocols());
|
||||
CString sCipher = CZNC::Get().GetSSLCiphers();
|
||||
if (!sCipher.empty()) {
|
||||
SetCipher(sCipher);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -253,6 +249,12 @@ void CSockManager::FinishConnect(const CString& sHostname, u_short iPort, const
|
||||
C.SetSockName(sSockName);
|
||||
C.SetIsSSL(bSSL);
|
||||
C.SetBindHost(sBindHost);
|
||||
#ifdef HAVE_LIBSSL
|
||||
CString sCipher = CZNC::Get().GetSSLCiphers();
|
||||
if (!sCipher.empty()) {
|
||||
C.SetCipher(sCipher);
|
||||
}
|
||||
#endif
|
||||
|
||||
TSocketManager<CZNCSock>::Connect(C, pcSock);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user