- change cloning behavior, does not clone anymore

This commit is contained in:
Martin Willi
2005-11-16 16:14:00 +00:00
parent 14e635db50
commit b722736c2f
2 changed files with 10 additions and 14 deletions
+7 -3
View File
@@ -49,10 +49,14 @@ struct nonce_payload_s {
/**
* @brief Set the nonce value.
*
* The nonce must have length between 16 and 256 bytes
*
* @param this calling nonce_payload_t object
* @param nonce chunk containing the nonce, will be cloned
* @return SUCCESS in any case
* @param nonce chunk containing the nonce, will NOT be cloned
* @return
* - SUCCESS or
* - INVALID_ARG, if nonce has an invalid size
*/
status_t (*set_nonce) (nonce_payload_t *this, chunk_t nonce);
@@ -60,7 +64,7 @@ struct nonce_payload_s {
* @brief Get the nonce value.
*
* @param this calling nonce_payload_t object
* @param[out] nonce chunk where the cloned nonce data is located
* @param[out] nonce chunk where nonce data is located (NOT cloned)
* @return SUCCESS in any case
*/
status_t (*get_nonce) (nonce_payload_t *this, chunk_t *nonce);