From 68560fb4ae4cfa1dd7de932bf0ecda5a1e32e3e3 Mon Sep 17 00:00:00 2001 From: om Date: Fri, 27 Jan 2006 16:13:36 +0000 Subject: Remove unused includes and rename classes from ModuleSSL to ModuleSSLGnuTLS so we can be consistent across multiple SSL modules git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2937 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_ssl_gnutls.cpp | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) (limited to 'src') diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index 64940cc95..e7d0fe2ed 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -1,16 +1,6 @@ #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include - #include #include "inspircd_config.h" @@ -47,7 +37,7 @@ public: int fd; }; -class ModuleSSL : public Module +class ModuleSSLGnuTLS : public Module { Server* Srv; ServerConfig* SrvConf; @@ -71,7 +61,7 @@ class ModuleSSL : public Module public: - ModuleSSL(Server* Me) + ModuleSSLGnuTLS(Server* Me) : Module::Module(Me) { Srv = Me; @@ -192,7 +182,7 @@ class ModuleSSL : public Module log(DEFAULT, "m_ssl_gnutls.so: Failed to generate DH parameters (%d bits)", dh_bits); } - virtual ~ModuleSSL() + virtual ~ModuleSSLGnuTLS() { delete Conf; gnutls_dh_params_deinit(dh_params); @@ -564,26 +554,26 @@ class ModuleSSL : public Module } }; -class ModuleSSLFactory : public ModuleFactory +class ModuleSSLGnuTLSFactory : public ModuleFactory { public: - ModuleSSLFactory() + ModuleSSLGnuTLSFactory() { } - ~ModuleSSLFactory() + ~ModuleSSLGnuTLSFactory() { } virtual Module * CreateModule(Server* Me) { - return new ModuleSSL(Me); + return new ModuleSSLGnuTLS(Me); } }; extern "C" void * init_module( void ) { - return new ModuleSSLFactory; + return new ModuleSSLGnuTLSFactory; } -- cgit v1.2.3