Cleaned up memory management and return values for encryption payload

This commit is contained in:
Martin Willi
2012-07-16 14:55:07 +02:00
parent 0d6183f0a9
commit 511f0b18b9
5 changed files with 35 additions and 35 deletions
+4 -1
View File
@@ -120,8 +120,11 @@ struct keymat_v1_t {
/**
* Returns the IV for a message with the given message ID.
*
* The return chunk contains internal data and is valid until the next
* get_iv/udpate_iv/confirm_iv call.
*
* @param mid message ID
* @param iv chunk receiving allocated IV
* @param iv chunk receiving IV, internal data
* @return TRUE if IV allocated successfully
*/
bool (*get_iv)(keymat_v1_t *this, u_int32_t mid, chunk_t *iv);