aboutsummaryrefslogtreecommitdiffstats
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2025-04-05 19:24:49 +0100
committerGravatar Sadie Powell2025-04-06 00:45:31 +0100
commit28073d2506685a508135a487b41ea3aed63bf522 (patch)
treec2328a7a857a2910ac9849eaa6b0c9b9091711f0 /src/helperfuncs.cpp
parentRewrite every single hash module for the new interface. (diff)
Delete the old hashing interface and modules.
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index b47c2bbd8..f5ea085c8 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -36,26 +36,6 @@
#include "utility/string.h"
#include "xline.h"
-bool InspIRCd::CheckPassword(const std::string& password, const std::string& passwordhash, const std::string& value)
-{
- ModResult res;
- FIRST_MOD_RESULT(OnCheckPassword, res, (password, passwordhash, value));
-
- if (res == MOD_RES_ALLOW)
- return true; // Password explicitly valid.
-
- if (res == MOD_RES_DENY)
- return false; // Password explicitly invalid.
-
- // The hash algorithm wasn't recognised by any modules. If its plain
- // text then we can check it internally.
- if (passwordhash.empty() || insp::equalsci(passwordhash, "plaintext"))
- return TimingSafeCompare(password, value);
-
- // The password was invalid.
- return false;
-}
-
bool InspIRCd::IsValidMask(const std::string& mask)
{
const char* dest = mask.c_str();