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/transforms/prf_plus.h | |
parent | 3fe058703ffe537dfdf68b9ad4d9143644230321 (diff) | |
download | strongswan-d048df5cabd2d17713230f260bccebb205740498.tar.bz2 strongswan-d048df5cabd2d17713230f260bccebb205740498.tar.xz |
- return value cleanup
Diffstat (limited to 'Source/charon/transforms/prf_plus.h')
-rw-r--r-- | Source/charon/transforms/prf_plus.h | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/Source/charon/transforms/prf_plus.h b/Source/charon/transforms/prf_plus.h index c7396b5fc..812af05aa 100644 --- a/Source/charon/transforms/prf_plus.h +++ b/Source/charon/transforms/prf_plus.h @@ -49,10 +49,8 @@ struct prf_plus_t { * @param this calling prf_plus * @param length number of bytes to get * @param[out] buffer pointer where the generated bytes will be written - * @return - * - SUCCESS in any case */ - status_t (*get_bytes) (prf_plus_t *this, size_t length, u_int8_t *buffer); + void (*get_bytes) (prf_plus_t *this, size_t length, u_int8_t *buffer); /** * @brief Allocate pseudo random bytes. @@ -63,20 +61,15 @@ struct prf_plus_t { * @param this calling prf_plus * @param length number of bytes to get * @param[out] chunk chunk which will hold generated bytes - * @return - * - SUCCESS in any case - * - OUT_OF_RES if space could not be allocated */ - status_t (*allocate_bytes) (prf_plus_t *this, size_t length, chunk_t *chunk); + void (*allocate_bytes) (prf_plus_t *this, size_t length, chunk_t *chunk); /** * @brief Destroys a prf_plus_t object. * * @param this prf_plus_t object to destroy - * @return - * - SUCCESS in any case */ - status_t (*destroy) (prf_plus_t *this); + void (*destroy) (prf_plus_t *this); }; /** @@ -88,9 +81,7 @@ struct prf_plus_t { * * @param prf prf object to use * @param seed input seed for prf - * @return - * - prf_plus_t if successfully - * - NULL if out of ressources + * @return created prf_plus_t * * @ingroup transforms */ |