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
+3 -1
View File
@@ -44,8 +44,10 @@ struct prf_plus_t {
*
* @param length number of bytes to get
* @param chunk chunk which will hold generated bytes
* @return TRUE if bytes allocated successfully
*/
void (*allocate_bytes) (prf_plus_t *this, size_t length, chunk_t *chunk);
__attribute__((warn_unused_result))
bool (*allocate_bytes) (prf_plus_t *this, size_t length, chunk_t *chunk);
/**
* Destroys a prf_plus_t object.