IKEv1 XAuth: Added ike_vendor task to the ID_PROT exchange type processing. We need...
authorClavister OpenSource <opensource@clavister.com>
Thu, 24 Nov 2011 10:26:04 +0000 (11:26 +0100)
committerClavister OpenSource <opensource@clavister.com>
Tue, 20 Mar 2012 16:30:51 +0000 (17:30 +0100)
src/libcharon/sa/task_manager_v1.c

index 13d95b4..32f847f 100644 (file)
@@ -19,6 +19,7 @@
 #include <math.h>
 
 #include <daemon.h>
+#include <sa/tasks/ike_vendor.h>
 #include <sa/tasks/main_mode.h>
 #include <sa/tasks/quick_mode.h>
 #include <processing/jobs/retransmit_job.h>
@@ -493,6 +494,8 @@ static status_t process_request(private_task_manager_t *this,
                switch (message->get_exchange_type(message))
                {
                        case ID_PROT:
+                               task = (task_t *)ike_vendor_create(this->ike_sa, FALSE);
+                               this->passive_tasks->insert_last(this->passive_tasks, task);
                                task = (task_t *)main_mode_create(this->ike_sa, FALSE);
                                this->passive_tasks->insert_last(this->passive_tasks, task);
                                break;