|
|||
|
|||
|


Public Member Functions | |
| ModuleOperHash (InspIRCd *Me) | |
| virtual | ~ModuleOperHash () |
| virtual void | OnLoadModule (Module *mod, const std::string &name) |
| Called whenever a module is loaded. | |
| virtual int | OnPassCompare (Extensible *ex, const std::string &data, const std::string &input, const std::string &hashtype) |
| Called whenever a password check is to be made. | |
| virtual Version | GetVersion () |
| Returns the version number of a Module. | |
Private Attributes | |
| CommandMkpasswd * | mycommand |
| hashymodules | hashers |
| std::deque< std::string > | names |
| bool | diduseiface |
Definition at line 71 of file m_password_hash.cpp.
|
|
Definition at line 81 of file m_password_hash.cpp. References InspIRCd::AddCommand(), ModuleManager::Attach(), diduseiface, ModuleManager::FindInterface(), hashers, I_OnLoadModule, I_OnPassCompare, InspIRCd::Modules, mycommand, names, Module::OnRehash(), Module::ServerInstance, and ModuleManager::UseInterface(). |
|
|
Definition at line 118 of file m_password_hash.cpp. References diduseiface, ModuleManager::DoneWithInterface(), InspIRCd::Modules, and Module::ServerInstance. |
|
|
Returns the version number of a Module. The method should return a Version object with its version information assigned via Version::Version Reimplemented from Module. Definition at line 161 of file m_password_hash.cpp. References API_VERSION, and VF_VENDOR. |
|
||||||||||||
|
Called whenever a module is loaded. mod will contain a pointer to the module, and string will contain its name, for example m_widgets.so. This function is primary for dependency checking, your module may decide to enable some extra features if it sees that you have for example loaded "m_killwidgets.so" with "m_makewidgets.so". It is highly recommended that modules do *NOT* bail if they cannot satisfy dependencies, but instead operate under reduced functionality, unless the dependency is absolutely neccessary (e.g. a module that extends the features of another module).
Reimplemented from Module. Definition at line 124 of file m_password_hash.cpp. References DEBUG, diduseiface, hashers, LogManager::Log(), InspIRCd::Logs, ModuleManager::ModuleHasInterface(), InspIRCd::Modules, names, Module::ServerInstance, and ModuleManager::UseInterface(). |
|
||||||||||||||||||||
|
Called whenever a password check is to be made. Replaces the old OldOperCompare API. The password field (from the config file) is in 'password' and is to be compared against 'input'. This method allows for encryption of passwords (oper, connect:allow, die/restart, etc). You should return a nonzero value to override the normal comparison, or zero to pass it on.
Reimplemented from Module. Definition at line 140 of file m_password_hash.cpp. References hashers. |
|
|
Definition at line 78 of file m_password_hash.cpp. Referenced by ModuleOperHash(), OnLoadModule(), and ~ModuleOperHash(). |
|
|
Definition at line 75 of file m_password_hash.cpp. Referenced by ModuleOperHash(), OnLoadModule(), and OnPassCompare(). |
|
|
Definition at line 74 of file m_password_hash.cpp. Referenced by ModuleOperHash(). |
|
|
Definition at line 76 of file m_password_hash.cpp. Referenced by ModuleOperHash(), and OnLoadModule(). |