Add a return value to prf_plus_t.allocate_bytes()

This commit is contained in:
Martin Willi
2012-07-16 14:53:33 +02:00
parent 2d56575d52
commit 5d79e6c6b4
4 changed files with 81 additions and 19 deletions
+2 -1
View File
@@ -89,7 +89,7 @@ METHOD(prf_plus_t, get_bytes, void,
}
}
METHOD(prf_plus_t, allocate_bytes, void,
METHOD(prf_plus_t, allocate_bytes, bool,
private_prf_plus_t *this, size_t length, chunk_t *chunk)
{
if (length)
@@ -101,6 +101,7 @@ METHOD(prf_plus_t, allocate_bytes, void,
{
*chunk = chunk_empty;
}
return TRUE;
}
METHOD(prf_plus_t, destroy, void,