From de7643a14faf01d84aac8f078608dde13be831b6 Mon Sep 17 00:00:00 2001 From: Naram Qashat Date: Thu, 5 Aug 2010 21:05:06 -0400 Subject: [PATCH] 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) --- docs/TODO | 45 ++++++++++++++++++++-------------------- modules/core/enc_md5.cpp | 6 +++--- 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/docs/TODO b/docs/TODO index 246276f8c..080008461 100644 --- a/docs/TODO +++ b/docs/TODO @@ -5,31 +5,32 @@ Legend: 1.9.3 ----- - [x] Add in a subcommand system, ns_set, cs_set, etc. - [x] Threading - [x] Mail sending needs to be threaded - [x] process_numlist needs to die - [x] SList needs to die - [x] SSL - [x] Command handling system needs to die, strtok() needs to die more - [ ] Asynchronous DNS - [ ] CIDR Akills, session exceptions, etc - [x] Hashing system for storing just about everything needs to die - [x] Add support for +k, +q, etc type umodes - [ ] Language system is disgusting, it must die. - [ ] Modules should also have a way to add strings programatically - [ ] Should be able to add many strings by dropping a file in a set location. - [+] Method to store listmodes (more generically than AKICK, too) for e.g. +beI and extbans, etc. - [ ] Config bailing on /os reload needs to be non fatal - [ ] AutoID needs to be able to live through /os restart, current system is just annoying. - [ ] SQL tables need to changed to have references etc - [ ] MS IGNORE. Make it take nick (accounts) or n!u@h masks. Fake success of memo send still, but send to opers? - [ ] NS IDENTIFY changes - [?] Last failed identify? Maybe more useful for sopers only, so users don't get unnecessarily worried - [?] Last successful login time/ip? perhaps both of these should be a new nick setting +[x] Add in a subcommand system, ns_set, cs_set, etc. +[x] Threading + [x] Mail sending needs to be threaded +[x] process_numlist needs to die +[x] SList needs to die +[x] SSL +[x] Command handling system needs to die, strtok() needs to die more +[ ] Asynchronous DNS +[ ] CIDR Akills, session exceptions, etc +[x] Hashing system for storing just about everything needs to die +[x] Add support for +k, +q, etc type umodes +[ ] Language system is disgusting, it must die. + [ ] Modules should also have a way to add strings programatically + [ ] Should be able to add many strings by dropping a file in a set location. +[+] Method to store listmodes (more generically than AKICK, too) for e.g. +beI and extbans, etc. +[ ] Config bailing on /os reload needs to be non fatal +[ ] AutoID needs to be able to live through /os restart, current system is just annoying. +[ ] SQL tables need to changed to have references etc +[ ] MS IGNORE. Make it take nick (accounts) or n!u@h masks. Fake success of memo send still, but send to opers? +[ ] NS IDENTIFY changes + [?] Last failed identify? Maybe more useful for sopers only, so users don't get unnecessarily worried + [?] Last successful login time/ip? perhaps both of these should be a new nick setting [ ] NS INFO: seperate field for last seen realhost, shown to SRA only [ ] NS SUSPEND: show suspender and reason, probably to sopers only (see CS SUSPEND) [x] Merge NS INFO blah ALL with NS INFO blah, if you're requesting info, you really want the info anyway. +[ ] Allow channel founders to change the fantasy trigger for their channel. Future ------ 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;