Moved CHILD_SA delete task creation to protocol specific task manager
[strongswan.git] / src / libcharon / sa / ikev2 / task_manager_v2.c
index d8dc9b8..ee2d536 100644 (file)
@@ -1220,6 +1220,12 @@ METHOD(task_manager_t, queue_child_rekey, void,
        queue_task(this, (task_t*)child_rekey_create(this->ike_sa, protocol, spi));
 }
 
+METHOD(task_manager_t, queue_child_delete, void,
+       private_task_manager_t *this, protocol_id_t protocol, u_int32_t spi)
+{
+       queue_task(this, (task_t*)child_delete_create(this->ike_sa, protocol, spi));
+}
+
 METHOD(task_manager_t, queue_dpd, void,
        private_task_manager_t *this)
 {
@@ -1347,6 +1353,7 @@ task_manager_v2_t *task_manager_v2_create(ike_sa_t *ike_sa)
                                .queue_ike = _queue_ike,
                                .queue_child = _queue_child,
                                .queue_child_rekey = _queue_child_rekey,
+                               .queue_child_delete = _queue_child_delete,
                                .queue_dpd = _queue_dpd,
                                .initiate = _initiate,
                                .retransmit = _retransmit,