From 26cd5393c9308fabe73c41870f06f73a5b001cd7 Mon Sep 17 00:00:00 2001 From: danieldg Date: Sat, 10 Oct 2009 17:06:52 +0000 Subject: Update m_cloaking to use free-form keys instead of weakening the hash IV git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11820 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_sqlauth.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_sqlauth.cpp') diff --git a/src/modules/m_sqlauth.cpp b/src/modules/m_sqlauth.cpp index aefd54ef7..61f8b8488 100644 --- a/src/modules/m_sqlauth.cpp +++ b/src/modules/m_sqlauth.cpp @@ -109,14 +109,14 @@ public: if (HashMod) { - SearchAndReplace(thisquery, std::string("$md5pass"), HashRequest(this, HashMod, user->password).result); + SearchAndReplace(thisquery, std::string("$md5pass"), HashRequest(this, HashMod, user->password).hex()); } HashMod = ServerInstance->Modules->Find("m_sha256.so"); if (HashMod) { - SearchAndReplace(thisquery, std::string("$sha256pass"), HashRequest(this, HashMod, user->password).result); + SearchAndReplace(thisquery, std::string("$sha256pass"), HashRequest(this, HashMod, user->password).hex()); } /* Build the query */ -- cgit v1.3.1-10-gc9f91