diff options
| author | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-08-05 21:05:06 -0400 |
|---|---|---|
| committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-08-05 21:05:06 -0400 |
| commit | de7643a14faf01d84aac8f078608dde13be831b6 (patch) | |
| tree | 54b51e53483deac3f451d8739ef4aaa70f7047c3 /modules | |
| parent | 46e88e35952e9a155cde9bd7f87128f82855c04a (diff) | |
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)
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/core/enc_md5.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<const unsigned char *>(src.c_str()), src.length()); - MD5Final(digest, &context); + MD5Final(reinterpret_cast<char *>(digest), &context); - b64_encode(reinterpret_cast<char *>(digest), cpass); + b64_encode(digest, cpass); buf += cpass; Alog(LOG_DEBUG_2) << "(enc_md5) hashed password from [" << src << "] to [" << buf << "]"; dest = buf; |
