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_spanningtree/hmac.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_spanningtree/hmac.cpp') diff --git a/src/modules/m_spanningtree/hmac.cpp b/src/modules/m_spanningtree/hmac.cpp index ad35a585f..00f908dc8 100644 --- a/src/modules/m_spanningtree/hmac.cpp +++ b/src/modules/m_spanningtree/hmac.cpp @@ -77,10 +77,10 @@ std::string TreeSocket::MakePass(const std::string &password, const std::string } hmac2 += challenge; - hmac2 = HashRequest(Utils->Creator, sha256, hmac2).result; + hmac2 = HashRequest(Utils->Creator, sha256, hmac2).hex(); std::string hmac = hmac1 + hmac2; - hmac = HashRequest(Utils->Creator, sha256, hmac).result; + hmac = HashRequest(Utils->Creator, sha256, hmac).hex(); return "HMAC-SHA256:"+ hmac; } -- cgit v1.2.3