From 80cb9f38fb4601b6147dfabb6b517134646ec7fb Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Thu, 8 Nov 2012 19:30:36 +0100 Subject: m_ssl_openssl Remove unused variables --- src/modules/extra/m_ssl_openssl.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src') 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 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; -- cgit v1.2.3