Removed unused function util::password_matches_hash.

This commit is contained in:
Guillaume Melquiond 2010-10-30 09:25:12 +00:00
parent 293f680af1
commit d2372aee8a
2 changed files with 0 additions and 6 deletions

View File

@ -83,9 +83,4 @@ std::string create_hash(const std::string& password, const std::string& salt, in
return encode_hash(output);
}
bool password_matches_hash(const std::string& password, const std::string& hash) {
return hash.substr(12,34) == create_hash(password, get_salt(hash), get_iteration_count(hash));
}
} // namespace util

View File

@ -26,7 +26,6 @@ std::string get_salt(const std::string& hash);
bool is_valid_hash(const std::string& hash);
std::string encode_hash(unsigned char* input);
std::string create_hash(const std::string& password, const std::string& salt, int iteration_count =10);
bool password_matches_hash(const std::string& password, const std::string& hash);
} // namespace util