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 72009da89..1f668edf2 100644
--- a/src/libstrongswan/crypto/prf_plus.h
+++ b/src/libstrongswan/crypto/prf_plus.h
@@ -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.