diff options
author | Martin Willi <martin@strongswan.org> | 2005-11-28 20:29:47 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2005-11-28 20:29:47 +0000 |
commit | d048df5cabd2d17713230f260bccebb205740498 (patch) | |
tree | 5c08427945e6a94421e84deada90aac2065fde18 /Source/charon/utils/randomizer.h | |
parent | 3fe058703ffe537dfdf68b9ad4d9143644230321 (diff) | |
download | strongswan-d048df5cabd2d17713230f260bccebb205740498.tar.bz2 strongswan-d048df5cabd2d17713230f260bccebb205740498.tar.xz |
- return value cleanup
Diffstat (limited to 'Source/charon/utils/randomizer.h')
-rw-r--r-- | Source/charon/utils/randomizer.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/charon/utils/randomizer.h b/Source/charon/utils/randomizer.h index a18a37745..b5dc3780a 100644 --- a/Source/charon/utils/randomizer.h +++ b/Source/charon/utils/randomizer.h @@ -54,10 +54,9 @@ struct randomizer_t { * * @param this calling randomizer_t object * @param bytes number of bytes to allocate - * @param[out] chunk chunk which will hold the allocated random bytes + * @param[out] chunk chunk which will hold the allocated random bytes * @return * - SUCCESS - * - OUT_OF_RES * - FAILED if random device could not be opened */ status_t (*allocate_random_bytes) (randomizer_t *this, size_t bytes, chunk_t *chunk); @@ -83,7 +82,6 @@ struct randomizer_t { * @param[out] chunk chunk which will hold the allocated random bytes * @return * - SUCCESS - * - OUT_OF_RES * - FAILED if random device could not be opened */ status_t (*allocate_pseudo_random_bytes) (randomizer_t *this, size_t bytes, chunk_t *chunk); @@ -92,9 +90,8 @@ struct randomizer_t { * @brief Destroys a randomizer_t object. * * @param this randomizer_t object to destroy - * @return SUCCESS in any case */ - status_t (*destroy) (randomizer_t *this); + void (*destroy) (randomizer_t *this); }; /** @@ -115,7 +112,7 @@ randomizer_t *randomizer_create(); * @param prandom_dev_name device name for pseudo random values, etc /dev/urandom * @return * - created randomizer_t - * - NULL if out of ressources + * - NULL if failed * * @ingroup utils */ |