aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/crypto/prf_plus.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstrongswan/crypto/prf_plus.h')
-rw-r--r--src/libstrongswan/crypto/prf_plus.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstrongswan/crypto/prf_plus.h b/src/libstrongswan/crypto/prf_plus.h
index 668f12c02..72009da89 100644
--- a/src/libstrongswan/crypto/prf_plus.h
+++ b/src/libstrongswan/crypto/prf_plus.h
@@ -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.