strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Identation fixes, warn about unused nonce_gen return values
[strongswan.git]
/
src
/
libstrongswan
/
crypto
/
nonce_gen.h
diff --git
a/src/libstrongswan/crypto/nonce_gen.h
b/src/libstrongswan/crypto/nonce_gen.h
index
ffa82aa
..
8461c4a
100644
(file)
--- 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
*
* @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);
/**
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
*
* @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);
/**
bool (*allocate_nonce) (nonce_gen_t *this, size_t size, chunk_t *chunk);
/**