summaryrefslogtreecommitdiff
path: root/src/modules/m_md5.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-05 20:05:31 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-05 20:05:31 +0000
commite770f8d983bc4eb674956ca365a70598615948f5 (patch)
treee5550447ecaf53dc7385bc48e4a71f6e3e390561 /src/modules/m_md5.cpp
parente948507b19304625623f9bb150d3a0b0083b9a8d (diff)
More tweakage
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5865 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_md5.cpp')
-rw-r--r--src/modules/m_md5.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/m_md5.cpp b/src/modules/m_md5.cpp
index 55e462077..a753ef577 100644
--- a/src/modules/m_md5.cpp
+++ b/src/modules/m_md5.cpp
@@ -15,7 +15,7 @@
*/
/* $ModDesc: Allows for MD5 encrypted oper passwords */
-/* $ModDep: m_md5.h */
+/* $ModDep: m_hash.h */
using namespace std;
@@ -28,7 +28,7 @@ using namespace std;
#include "modules.h"
#include "inspircd.h"
-#include "m_md5.h"
+#include "m_hash.h"
/* The four core functions - F1 is optimized somewhat */
#define F1(x, y, z) (z ^ (x & (y ^ z)))
@@ -291,22 +291,22 @@ class ModuleMD5 : public Module
virtual char* OnRequest(Request* request)
{
- MD5Request* MD5 = (MD5Request*)request;
- if (strcmp("MD5_KEY", request->GetId()) == 0)
+ HashRequest* MD5 = (HashRequest*)request;
+ if (strcmp("KEY", request->GetId()) == 0)
{
this->key = (unsigned int*)MD5->GetKeyData();
}
- else if (strcmp("MD5_HEX", request->GetId()) == 0)
+ else if (strcmp("HEX", request->GetId()) == 0)
{
this->chars = (char*)MD5->GetOutputs();
}
- else if (strcmp("MD5_SUM", request->GetId()) == 0)
+ else if (strcmp("SUM", request->GetId()) == 0)
{
static char data[MAXBUF];
GenHash((const char*)MD5->GetHashData(), data, chars ? chars : "0123456789abcdef", key);
return data;
}
- else if (strcmp("MD5_RESET", request->GetId()) == 0)
+ else if (strcmp("RESET", request->GetId()) == 0)
{
this->chars = NULL;
this->key = NULL;