diff options
author | Martin Willi <martin@revosec.ch> | 2012-07-06 14:45:17 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2012-07-16 14:53:37 +0200 |
commit | c3858662d2d1d431bdb453f2b50e63d9c2c5bfad (patch) | |
tree | 647564ca94d8986efe1d0ecf5d75998975a57f58 /src/libstrongswan/crypto/nonce_gen.h | |
parent | 6ac8d861d9a6353bae7f3be0a032da282ee13309 (diff) | |
download | strongswan-c3858662d2d1d431bdb453f2b50e63d9c2c5bfad.tar.bz2 strongswan-c3858662d2d1d431bdb453f2b50e63d9c2c5bfad.tar.xz |
Identation fixes, warn about unused nonce_gen return values
Diffstat (limited to 'src/libstrongswan/crypto/nonce_gen.h')
-rw-r--r-- | src/libstrongswan/crypto/nonce_gen.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libstrongswan/crypto/nonce_gen.h b/src/libstrongswan/crypto/nonce_gen.h index ffa82aa90..8461c4aa0 100644 --- a/src/libstrongswan/crypto/nonce_gen.h +++ b/src/libstrongswan/crypto/nonce_gen.h @@ -35,8 +35,9 @@ struct nonce_gen_t { * * @param size size of nonce in bytes * @param buffer pointer where the generated nonce will be written - * @return TRUE if nonce allocation was succesful, FALSE otherwise + * @return TRUE if nonce allocation was succesful, FALSE otherwise */ + __attribute__((warn_unused_result)) bool (*get_nonce) (nonce_gen_t *this, size_t size, u_int8_t *buffer); /** @@ -44,8 +45,9 @@ struct nonce_gen_t { * * @param size size of nonce in bytes * @param chunk chunk which will hold the generated nonce - * @return TRUE if nonce allocation was succesful, FALSE otherwise + * @return TRUE if nonce allocation was succesful, FALSE otherwise */ + __attribute__((warn_unused_result)) bool (*allocate_nonce) (nonce_gen_t *this, size_t size, chunk_t *chunk); /** |