Implemented migration of certificate handling tasks
authorMartin Willi <martin@revosec.ch>
Tue, 20 Dec 2011 17:00:03 +0000 (18:00 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:31:29 +0000 (17:31 +0100)
src/libcharon/sa/ikev1/tasks/isakmp_cert_post.c
src/libcharon/sa/ikev1/tasks/isakmp_cert_pre.c

index 30e1c6d..5fbd04a 100644 (file)
@@ -307,6 +307,7 @@ METHOD(task_t, migrate, void,
        private_isakmp_cert_post_t *this, ike_sa_t *ike_sa)
 {
        this->ike_sa = ike_sa;
+       this->state = CR_SA;
 }
 
 METHOD(task_t, destroy, void,
index db25bf3..25c4af6 100644 (file)
@@ -491,6 +491,8 @@ METHOD(task_t, migrate, void,
        private_isakmp_cert_pre_t *this, ike_sa_t *ike_sa)
 {
        this->ike_sa = ike_sa;
+       this->state = CR_SA;
+       this->send_req = TRUE;
 }
 
 METHOD(task_t, destroy, void,