utils: Use chunk_equals_const() for all cryptographic purposes
This commit is contained in:
@@ -269,7 +269,7 @@ METHOD(enumerator_t, enumerate, bool,
|
||||
hasher->destroy(hasher);
|
||||
DBG3(DBG_LIB, "hash: %B", &hash);
|
||||
|
||||
valid = chunk_equals(chunk, hash);
|
||||
valid = chunk_equals_const(chunk, hash);
|
||||
free(hash.ptr);
|
||||
if (!valid)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user