Add a return value to hasher_t.get_hash()
This commit is contained in:
@@ -89,7 +89,7 @@ METHOD(hasher_t, reset, void,
|
||||
chunk_free(&this->data);
|
||||
}
|
||||
|
||||
METHOD(hasher_t, get_hash, void,
|
||||
METHOD(hasher_t, get_hash, bool,
|
||||
private_padlock_sha1_hasher_t *this, chunk_t chunk, u_int8_t *hash)
|
||||
{
|
||||
if (hash)
|
||||
@@ -109,6 +109,7 @@ METHOD(hasher_t, get_hash, void,
|
||||
{
|
||||
append_data(this, chunk);
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
METHOD(hasher_t, allocate_hash, void,
|
||||
|
||||
Reference in New Issue
Block a user