Add a return value to keymat_v1_t.get_hash()

This commit is contained in:
Martin Willi
2012-07-16 14:53:34 +02:00
parent bb1e0c59e1
commit e4c5c1d03e
4 changed files with 35 additions and 17 deletions
+4 -3
View File
@@ -101,11 +101,12 @@ struct keymat_v1_t {
* @param ike_sa_id IKE_SA identifier
* @param sa_i encoded SA payload of initiator
* @param id encoded IDii payload for HASH_I (IDir for HASH_R)
* @return allocated HASH data
* @param hash chunk receiving allocated HASH data
* @return TRUE if hash allocated successfully
*/
chunk_t (*get_hash)(keymat_v1_t *this, bool initiator,
bool (*get_hash)(keymat_v1_t *this, bool initiator,
chunk_t dh, chunk_t dh_other, ike_sa_id_t *ike_sa_id,
chunk_t sa_i, chunk_t id);
chunk_t sa_i, chunk_t id, chunk_t *hash);
/**
* Get HASH data for integrity/authentication in Phase 2 exchanges.