Disable insecure SSLv2 & SSLv3 protocols (ref #621)

This commit is contained in:
J-P Nurmi
2014-10-26 11:58:33 +01:00
parent 9a8786377b
commit 954f22ccc0
2 changed files with 10 additions and 2 deletions
+2 -2
View File
@@ -25,8 +25,8 @@ class CModule;
class CZNCSock : public Csock {
public:
CZNCSock(int timeout = 60) : Csock(timeout) {}
CZNCSock(const CString& sHost, u_short port, int timeout = 60) : Csock(sHost, port, timeout) {}
CZNCSock(int timeout = 60);
CZNCSock(const CString& sHost, u_short port, int timeout = 60);
~CZNCSock() {}
virtual int ConvertAddress(const struct sockaddr_storage * pAddr, socklen_t iAddrLen, CS_STRING & sIP, u_short * piPort) const;
+8
View File
@@ -18,6 +18,14 @@
#include <znc/IRCNetwork.h>
#include <signal.h>
CZNCSock::CZNCSock(int timeout) : Csock(timeout) {
DisableSSLProtocols(EDP_SSL);
}
CZNCSock::CZNCSock(const CString& sHost, u_short port, int timeout) : Csock(sHost, port, timeout) {
DisableSSLProtocols(EDP_SSL);
}
unsigned int CSockManager::GetAnonConnectionCount(const CString &sIP) const {
const_iterator it;
unsigned int ret = 0;