aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_password_hash.cpp
Commit message (Expand)AuthorAgeFilesLines
* Update copyright headers.Gravatar InspIRCd Robot2024-06-071-4/+4
* Refactor the password checking API.•••- Rename from (On)PassCompare to (On)CheckPassword. - Fix the order of the arguments to be password, hash, value. This makes more sense than what it was previously. - Fix the code documentation to not be complete nonsense and not reference ancient outdated APIs. Gravatar Sadie Powell2023-02-281-9/+9
* Convert log calls to use fmtlib format stringsGravatar Sadie Powell2023-01-241-1/+1
* Avoid copying shared_ptr<ConfigTag> when not necessary.Gravatar Sadie Powell2023-01-101-1/+1
* Merge branch 'insp3' into master.Gravatar Sadie Powell2023-01-011-1/+1
|\
| * Update copyright headers.Gravatar InspIRCd Robot2022-12-301-1/+1
* | Remove the unused Extensible* parameter to PassCompare/OnPassCompare.Gravatar Sadie Powell2022-12-101-1/+1
* | Yet more stylistic fixes.Gravatar Sadie Powell2022-12-011-1/+2
* | Make internal penalty be specified in millisecs instead of seconds.•••This removes the need to multiply it later. Gravatar Sadie Powell2022-09-091-1/+1
* | Switch from NULL to nullptr.Gravatar Sadie Powell2022-07-221-1/+1
* | Rewrite logging calls to use the new APIs.Gravatar Sadie Powell2022-05-011-1/+1
* | Abolish the infernal space before accessibility keywords.Gravatar Sadie Powell2022-01-251-3/+3
* | Mark all command classes as final.Gravatar Sadie Powell2021-10-011-1/+2
* | Mark all module classes as final.Gravatar Sadie Powell2021-10-011-1/+2
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-08-281-1/+1
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2021-08-271-1/+1
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-07-241-3/+11
|\|
| * Handle exceptions from hash providers in password_hash.Gravatar Sadie Powell2021-07-191-3/+11
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-07-011-1/+7
|\|
| * Allow making the MKPASSWD command only usable by opers.Gravatar Sadie Powell2021-06-211-0/+6
* | Get rid of even more pointless copy/paste comments.Gravatar Sadie Powell2021-05-191-2/+0
* | Refactor the Base64 encoding and decoding functions.Gravatar Sadie Powell2021-05-101-3/+3
* | Merge tag 'v3.8.1' into master.Gravatar Sadie Powell2020-11-201-2/+2
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2020-11-201-1/+1
| * Update the module descriptions.Gravatar Sadie Powell2020-11-201-1/+1
* | Convert CmdResult to an 8-bit strongly typed enum.Gravatar Sadie Powell2020-10-271-5/+5
* | Alow modules to specify multiple syntax lines.Gravatar Sadie Powell2020-04-141-1/+1
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2020-04-111-1/+1
|\|
| * Update the module descriptions using mkversion.Gravatar Sadie Powell2020-04-101-1/+1
* | Improve storage of module description, flags, and link data.Gravatar Sadie Powell2020-04-111-6/+2
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2020-01-171-1/+7
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2020-01-111-1/+7
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2019-03-301-1/+1
|\|
| * Various text improvements: consistency, syntax, help and doc updates/fixes.Gravatar Robby2019-02-181-1/+1
* | ModuleManager: remove fakederef.Gravatar Sadie Powell2019-02-071-4/+4
* | LogManager: remove fakederef.Gravatar Sadie Powell2019-02-071-1/+1
* | Replace the override macro with the override keyword.Gravatar Sadie Powell2019-01-251-3/+3
|/
* Use CommandBase::Params instead of std::vector<std::string>.•••This is presently a typedef but will soon be replaced with a class that encapsulates both tags and parameters. Gravatar Peter Powell2018-07-261-1/+1
* Clean up m_password_hash slightly.•••- Get rid of MakeHash and inline the logic into the actual handler. - Return CMD_FAILURE when password hashing fails for some reason. - Change the module name and description to be more accurate. Gravatar Peter Powell2017-12-031-26/+21
* Add the override keyword in places that it is missing.•••GCCs warnings for this are much better than Clangs. Gravatar Peter Powell2017-11-211-1/+1
* Reduce std::string::substr() usage•••substr() returns a new string while erase() and assign() modify the existing one Gravatar Attila Molnar2015-01-101-2/+2
* Hashing: Redo API•••* Don't assume the printable output of hashes is hex * Add virtual Compare() function, usable for KDFs like BCrypt Some changes and bugfixes are by @attilamolnar, original PR #767 Gravatar Daniel Vassdal2014-08-041-3/+16
* m_password_hash: Use out_size as HMAC-key length, as RFC2104 recommends•••"In any case the minimal recommended length for K is L bytes (as the hash output length)." Gravatar Daniel Vassdal2014-08-041-1/+1
* Use TimingSafeCompare() to compare passwords and password hashes (non-hmac only)•••Issue #882 Gravatar Attila Molnar2014-06-281-3/+3
* Switch to std::string::compare() from substr() in a couple of placesGravatar Attila Molnar2014-05-261-2/+2
* Automatically register ServiceProviders created by modulesGravatar attilamolnar2013-09-081-5/+0
* Replace OnRehash() with ReadConfig() that is called on boot, on module load a...•••This eliminates the need for calling OnRehash() in init() Gravatar attilamolnar2013-08-301-3/+0
* Automatically attach modules to eventsGravatar attilamolnar2013-08-041-2/+0
* Remove $Core and $Mod* comments apart from $ModDep.Gravatar Peter Powell2013-07-041-2/+0
* Tidy up keywords on module methods.•••- Remove virtual keyword from a ton of methods which don't need it. - Add override keyword to a ton of methods which do need it. Gravatar Peter Powell2013-05-151-3/+3