summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-27 16:13:36 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-27 16:13:36 +0000
commit68560fb4ae4cfa1dd7de932bf0ecda5a1e32e3e3 (patch)
tree08b4c57a5e8ee90461a2a8f6379674380e77e8e1 /src
parent6ffa3f426f1721bb397b4f879894655ecd582eb6 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp26
1 files changed, 8 insertions, 18 deletions
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 <string>
#include <vector>
-#include <stdio.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <string.h>
-#include <unistd.h>
-
#include <gnutls/gnutls.h>
#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;
}