Public Member Functions | Private Attributes

EMD5 Class Reference

Inherits Module.

Collaboration diagram for EMD5:
Collaboration graph
[legend]

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

Detailed Description

Definition at line 342 of file enc_md5.cpp.


Constructor & Destructor Documentation

EMD5::EMD5 ( const Anope::string modname,
const Anope::string creator 
) [inline]

Member Function Documentation

void EMD5::OnCheckAuthentication ( User u,
IdentifyRequest req 
) [inline, virtual]

Check whether a username and password is correct

Parameters:
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().


Field Documentation

Definition at line 344 of file enc_md5.cpp.


The documentation for this class was generated from the following file: