Inherits Module.

Public Member Functions | |
| EMD5 (const Anope::string &modname, const Anope::string &creator) | |
| EventReturn | OnEncrypt (const Anope::string &src, Anope::string &dest) anope_override |
| void | OnCheckAuthentication (User *, IdentifyRequest *req) anope_override |
Private Attributes | |
| MD5Provider | md5provider |
Definition at line 342 of file enc_md5.cpp.
| EMD5::EMD5 | ( | const Anope::string & | modname, | |
| const Anope::string & | creator | |||
| ) | [inline] |
Definition at line 347 of file enc_md5.cpp.
References ModuleManager::Attach(), I_OnCheckAuthentication, and Module::SetAuthor().
| void EMD5::OnCheckAuthentication | ( | User * | u, | |
| IdentifyRequest * | req | |||
| ) | [inline, virtual] |
Check whether a username and password is correct
| u | The user trying to identify, if applicable. | |
| req | The login request |
Reimplemented from Module.
Definition at line 372 of file enc_md5.cpp.
References Anope::string::begin(), Anope::Encrypt(), ENCRYPTION, Anope::string::equals_cs(), Anope::string::find(), NickAlias::Find(), ModuleManager::FindFirstOf(), NickAlias::nc, Anope::string::npos, OnEncrypt(), and NickCore::pass.
| EventReturn EMD5::OnEncrypt | ( | const Anope::string & | src, | |
| Anope::string & | dest | |||
| ) | [inline, virtual] |
Called when anope needs to check passwords against encryption see src/encrypt.c for detailed informations
Reimplemented from Module.
Definition at line 356 of file enc_md5.cpp.
References MD5Context::Finalize(), MD5Context::GetFinalizedHash(), Hex(), LOG_DEBUG_2, and MD5Context::Update().
Referenced by OnCheckAuthentication().
MD5Provider EMD5::md5provider [private] |
Definition at line 344 of file enc_md5.cpp.
1.7.1