certificate tasks added to passive list for responder
authorClavister OpenSource <opensource@clavister.com>
Mon, 5 Dec 2011 13:17:17 +0000 (14:17 +0100)
committerClavister OpenSource <opensource@clavister.com>
Tue, 20 Mar 2012 16:31:12 +0000 (17:31 +0100)
src/libcharon/sa/task_manager_v1.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 86b25e4..c08f70b
@@ -24,6 +24,8 @@
 #include <sa/tasks/xauth_request.h>
 #include <sa/tasks/ike_natd_v1.h>
 #include <sa/tasks/ike_vendor_v1.h>
+#include <sa/tasks/ike_cert_pre.h>
+#include <sa/tasks/ike_cert_post.h>
 #include <processing/jobs/retransmit_job.h>
 #include <processing/jobs/delete_ike_sa_job.h>
 
@@ -499,10 +501,14 @@ static status_t process_request(private_task_manager_t *this,
                        case ID_PROT:
                                task = (task_t *)ike_vendor_v1_create(this->ike_sa, FALSE);
                                this->passive_tasks->insert_last(this->passive_tasks, task);
+                               task = (task_t*)ike_cert_pre_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);
                                task = (task_t *)ike_natd_v1_create(this->ike_sa, FALSE);
                                this->passive_tasks->insert_last(this->passive_tasks, task);
+                               task = (task_t*)ike_cert_post_create(this->ike_sa, FALSE);
+                               this->passive_tasks->insert_last(this->passive_tasks, task);
                                break;
                        case AGGRESSIVE:
                                /* TODO-IKEv1: agressive mode */