summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-11-08 19:30:36 +0100
committerattilamolnar <attilamolnar@hush.com>2012-11-09 16:41:21 +0100
commit80cb9f38fb4601b6147dfabb6b517134646ec7fb (patch)
treed30e34b5078590061e086124f68fd2fb480ad78b /src/modules/extra
parent1e7a9fcd2070a26e5b53856a985ec916b6594e2f (diff)
m_ssl_openssl Remove unused variables
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_ssl_openssl.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp
index 413f891c9..8a736e121 100644
--- a/src/modules/extra/m_ssl_openssl.cpp
+++ b/src/modules/extra/m_ssl_openssl.cpp
@@ -68,7 +68,6 @@ public:
issl_status status;
reference<ssl_cert> cert;
- int fd;
bool outbound;
bool data_to_write;
@@ -95,14 +94,11 @@ static int OnVerify(int preverify_ok, X509_STORE_CTX *ctx)
class ModuleSSLOpenSSL : public Module
{
- int inbufsize;
issl_session* sessions;
SSL_CTX* ctx;
SSL_CTX* clictx;
- char cipher[MAXBUF];
-
std::string sslports;
bool use_sha;
@@ -113,9 +109,6 @@ class ModuleSSLOpenSSL : public Module
{
sessions = new issl_session[ServerInstance->SE->GetMaxFds()];
- // Not rehashable...because I cba to reduce all the sizes of existing buffers.
- inbufsize = ServerInstance->Config->NetBufferSize;
-
/* Global SSL library initialization*/
SSL_library_init();
SSL_load_error_strings();
@@ -156,7 +149,7 @@ class ModuleSSLOpenSSL : public Module
sslports.clear();
ConfigTag* Conf = ServerInstance->Config->ConfValue("openssl");
-
+
if (Conf->getBool("showports", true))
{
sslports = Conf->getString("advertisedports");
@@ -332,7 +325,6 @@ class ModuleSSLOpenSSL : public Module
issl_session* session = &sessions[fd];
- session->fd = fd;
session->sess = SSL_new(ctx);
session->status = ISSL_NONE;
session->outbound = false;
@@ -359,7 +351,6 @@ class ModuleSSLOpenSSL : public Module
issl_session* session = &sessions[fd];
- session->fd = fd;
session->sess = SSL_new(clictx);
session->status = ISSL_NONE;
session->outbound = true;