Add a return value to prf_plus_t.get_bytes()

This commit is contained in:
Martin Willi
2012-07-16 14:53:33 +02:00
parent 5d79e6c6b4
commit 8207fe3eb3
2 changed files with 7 additions and 7 deletions
+3 -1
View File
@@ -36,8 +36,10 @@ struct prf_plus_t {
*
* @param length number of bytes to get
* @param buffer pointer where the generated bytes will be written
* @return TRUE if bytes generated successfully
*/
void (*get_bytes) (prf_plus_t *this, size_t length, u_int8_t *buffer);
__attribute__((warn_unused_result))
bool (*get_bytes) (prf_plus_t *this, size_t length, u_int8_t *buffer);
/**
* Allocate pseudo random bytes.