From de7643a14faf01d84aac8f078608dde13be831b6 Mon Sep 17 00:00:00 2001 From: Naram Qashat Date: Thu, 5 Aug 2010 21:05:06 -0400 Subject: Update TODO, and minor change to enc_md5 (no, it doesn't fix encryption with 1.9 git yet, I'll get to that eventually) --- modules/core/enc_md5.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/core') diff --git a/modules/core/enc_md5.cpp b/modules/core/enc_md5.cpp index fefcb6ce0..63ac5f101 100644 --- a/modules/core/enc_md5.cpp +++ b/modules/core/enc_md5.cpp @@ -328,15 +328,15 @@ class EMD5 : public Module EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest) { MD5_CTX context; - unsigned char digest[17] = ""; + char digest[17] = ""; Anope::string buf = "md5:"; Anope::string cpass; MD5Init(&context); MD5Update(&context, reinterpret_cast(src.c_str()), src.length()); - MD5Final(digest, &context); + MD5Final(reinterpret_cast(digest), &context); - b64_encode(reinterpret_cast(digest), cpass); + b64_encode(digest, cpass); buf += cpass; Alog(LOG_DEBUG_2) << "(enc_md5) hashed password from [" << src << "] to [" << buf << "]"; dest = buf; -- cgit