added CHILD_SA compare check for rekeying collisions

This commit is contained in:
Martin Willi
2007-03-22 07:34:42 +00:00
parent 1eb6a5f4a2
commit 92275b0981
6 changed files with 47 additions and 9 deletions
+11
View File
@@ -230,6 +230,16 @@ static task_type_t get_type(private_child_delete_t *this)
return CHILD_DELETE;
}
/**
* Implementation of child_delete_t.get_child
*/
static child_sa_t* get_child(private_child_delete_t *this)
{
child_sa_t *child_sa = NULL;
this->child_sas->get_first(this->child_sas, (void**)&child_sa);
return child_sa;
}
/**
* Implementation of task_t.migrate
*/
@@ -257,6 +267,7 @@ child_delete_t *child_delete_create(ike_sa_t *ike_sa, child_sa_t *child_sa)
{
private_child_delete_t *this = malloc_thing(private_child_delete_t);
this->public.get_child = (child_sa_t*(*)(child_delete_t*))get_child;
this->public.task.get_type = (task_type_t(*)(task_t*))get_type;
this->public.task.migrate = (void(*)(task_t*,ike_sa_t*))migrate;
this->public.task.destroy = (void(*)(task_t*))destroy;