old child_sa gets deleted after rekeying

rekeying almost complete, but:
	IKE_SA get in an invalid state when both initiate rekeying at the same time,
This commit is contained in:
Martin Willi
2006-06-09 15:12:43 +00:00
parent 2a13996de0
commit 695723d4e8
19 changed files with 586 additions and 102 deletions
@@ -47,13 +47,18 @@ struct create_child_sa_requested_t {
/**
* @brief Constructor of class create_child_sa_requested_t
*
* If this CREATE_CHILD_SA message is to rekey a CHILD_SA,
* the child_sa with the specified reqid gets deleted after a new
* one is set up.
*
* @param ike_sa assigned ike_sa
* @param child_sa newly created child sa to complete
* @param nonce nonce sent at initialization
* @param reqid reqid, when rekeying a child SA.
* @return created create_child_sa_requested_t object
*
* @ingroup states
*/
create_child_sa_requested_t *create_child_sa_requested_create(protected_ike_sa_t *ike_sa, child_sa_t *child_sa, chunk_t nonce_i);
create_child_sa_requested_t *create_child_sa_requested_create(protected_ike_sa_t *ike_sa, child_sa_t *child_sa, chunk_t nonce_i, u_int32_t reqid);
#endif /*CREATE_CHILD_SA_REQEUSTED_H_*/