diff options
author | Martin Willi <martin@revosec.ch> | 2012-07-06 10:14:29 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2012-07-16 14:53:33 +0200 |
commit | bc4748832395a5db4b71cb38d37f75de0d6e9416 (patch) | |
tree | ae946170f42eecb8b8db6d5b8a44ef4be12c3a83 /src/libstrongswan/crypto/prfs/prf.h | |
parent | e7d98b8c9967d53d0244b2d2bd4edeb20df58dcc (diff) | |
download | strongswan-bc4748832395a5db4b71cb38d37f75de0d6e9416.tar.bz2 strongswan-bc4748832395a5db4b71cb38d37f75de0d6e9416.tar.xz |
Add a return value to prf_t.get_bytes()
Diffstat (limited to 'src/libstrongswan/crypto/prfs/prf.h')
-rw-r--r-- | src/libstrongswan/crypto/prfs/prf.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstrongswan/crypto/prfs/prf.h b/src/libstrongswan/crypto/prfs/prf.h index ad15205d3..8b98b41aa 100644 --- a/src/libstrongswan/crypto/prfs/prf.h +++ b/src/libstrongswan/crypto/prfs/prf.h @@ -71,13 +71,16 @@ extern enum_name_t *pseudo_random_function_names; * Generic interface for pseudo-random-functions. */ struct prf_t { + /** * Generates pseudo random bytes and writes them in the buffer. * * @param seed a chunk containing the seed for the next bytes * @param buffer pointer where the generated bytes will be written + * @return TRUE if bytes generated successfully */ - void (*get_bytes) (prf_t *this, chunk_t seed, u_int8_t *buffer); + __attribute__((warn_unused_result)) + bool (*get_bytes) (prf_t *this, chunk_t seed, u_int8_t *buffer); /** * Generates pseudo random bytes and allocate space for them. |