mirror of
https://github.com/znc/znc.git
synced 2026-06-30 06:51:26 +02:00
Disable insecure SSLv2 & SSLv3 protocols (ref #621)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user