Add a return value to hasher_t.get_hash()
This commit is contained in:
1 parent
ce73fc19db
commit
8bd6a30af1
23 files changed
+174
-89
No files matched your search
@@ -58,7 +58,11 @@ METHOD(storage_t, login, int,
|
||||
data = chunk_alloca(username_len + password_len);
|
||||
memcpy(data.ptr, username, username_len);
|
||||
memcpy(data.ptr + username_len, password, password_len);
|
||||
hasher->get_hash(hasher, data, hash.ptr);
|
||||
if (!hasher->get_hash(hasher, data, hash.ptr))
|
||||
{
|
||||
hasher->destroy(hasher);
|
||||
return 0;
|
||||
}
|
||||
hasher->destroy(hasher);
|
||||
hex_str = chunk_to_hex(hash, NULL, FALSE);
|
||||
|
||||
|
||||
Reference in new issue
Block a user