Use a bool return value in keymat_v1_t.get_hash_phase2()

This commit is contained in:
Martin Willi
2012-07-16 14:53:34 +02:00
parent e4c5c1d03e
commit a7e6539135
3 changed files with 29 additions and 31 deletions
+3 -3
View File
@@ -112,10 +112,10 @@ struct keymat_v1_t {
* Get HASH data for integrity/authentication in Phase 2 exchanges.
*
* @param message message to generate the HASH data for
* @return allocated HASH data
* @param hash chunk receiving allocated hash data
* @return TRUE if hash allocated successfully
*/
chunk_t (*get_hash_phase2)(keymat_v1_t *this, message_t *message);
bool (*get_hash_phase2)(keymat_v1_t *this, message_t *message, chunk_t *hash);
/**
* Returns the IV for a message with the given message ID.