X-Git-Url: https://git.strongswan.org/?p=strongswan.git;a=blobdiff_plain;f=src%2Flibstrongswan%2Fcrypto%2Fnonce_gen.h;h=8461c4aa05e555bd3d61a1b01842539c14e6d479;hp=ffa82aa904cd28b14d2fd66cda7edd1a1a07f771;hb=c3858662d2d1d431bdb453f2b50e63d9c2c5bfad;hpb=6ac8d861d9a6353bae7f3be0a032da282ee13309;ds=sidebyside diff --git a/src/libstrongswan/crypto/nonce_gen.h b/src/libstrongswan/crypto/nonce_gen.h index ffa82aa..8461c4a 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); /**