Removed IKEv1 specific code from child_delete task
[strongswan.git] / src / libcharon / sa / tasks / child_delete.c
index dc4b30d..c5151ab 100644 (file)
@@ -87,7 +87,7 @@ static void build_payloads(private_child_delete_t *this, message_t *message)
                        case PROTO_ESP:
                                if (esp == NULL)
                                {
-                                       esp = delete_payload_create(PROTO_ESP);
+                                       esp = delete_payload_create(DELETE, PROTO_ESP);
                                        message->add_payload(message, (payload_t*)esp);
                                }
                                esp->add_spi(esp, spi);
@@ -97,7 +97,7 @@ static void build_payloads(private_child_delete_t *this, message_t *message)
                        case PROTO_AH:
                                if (ah == NULL)
                                {
-                                       ah = delete_payload_create(PROTO_AH);
+                                       ah = delete_payload_create(DELETE, PROTO_AH);
                                        message->add_payload(message, (payload_t*)ah);
                                }
                                ah->add_spi(ah, spi);
@@ -324,7 +324,7 @@ METHOD(task_t, build_r, status_t,
 METHOD(task_t, get_type, task_type_t,
        private_child_delete_t *this)
 {
-       return CHILD_DELETE;
+       return TASK_CHILD_DELETE;
 }
 
 METHOD(child_delete_t , get_child, child_sa_t*,