mirror of
https://github.com/anope/anope.git
synced 2026-06-28 23:46:39 +02:00
Fix some coding style issues.
This commit is contained in:
@@ -30,14 +30,14 @@ class EBCRYPT final
|
||||
return salt;
|
||||
}
|
||||
|
||||
Anope::string Generate(const Anope::string& data, const Anope::string& salt)
|
||||
Anope::string Generate(const Anope::string &data, const Anope::string &salt)
|
||||
{
|
||||
char hash[64];
|
||||
_crypt_blowfish_rn(data.c_str(), salt.c_str(), hash, sizeof(hash));
|
||||
return hash;
|
||||
}
|
||||
|
||||
bool Compare(const Anope::string& string, const Anope::string& hash)
|
||||
bool Compare(const Anope::string &string, const Anope::string &hash)
|
||||
{
|
||||
Anope::string ret = Generate(string, hash);
|
||||
if (ret.empty())
|
||||
|
||||
Reference in New Issue
Block a user