completed IKE_SA logging at the AUDIT level
[strongswan.git] / src / charon / sa / tasks / ike_rekey.c
index 175ffcf..4a13f30 100644 (file)
@@ -90,7 +90,7 @@ static status_t build_i(private_ike_rekey_t *this, message_t *message)
 }
 
 /**
- * Implementation of task_t.process for initiator
+ * Implementation of task_t.process for responder
  */
 static status_t process_r(private_ike_rekey_t *this, message_t *message)
 {
@@ -152,6 +152,13 @@ static status_t build_r(private_ike_rekey_t *this, message_t *message)
        
        this->ike_sa->set_state(this->ike_sa, IKE_REKEYING);
        this->new_sa->set_state(this->new_sa, IKE_ESTABLISHED);
+       SIG_IKE(UP_SUCCESS, "IKE_SA %s[%d] established between %H[%D]...%H[%D]",
+               this->new_sa->get_name(this->new_sa),
+               this->new_sa->get_unique_id(this->new_sa),
+               this->ike_sa->get_my_host(this->ike_sa),
+               this->ike_sa->get_my_id(this->ike_sa),
+               this->ike_sa->get_other_host(this->ike_sa),
+               this->ike_sa->get_other_id(this->ike_sa));
        
        return SUCCESS;
 }
@@ -191,6 +198,14 @@ static status_t process_i(private_ike_rekey_t *this, message_t *message)
        }
 
        this->new_sa->set_state(this->new_sa, IKE_ESTABLISHED);
+       SIG_IKE(UP_SUCCESS, "IKE_SA %s[%d] established between %H[%D]...%H[%D]",
+               this->new_sa->get_name(this->new_sa),
+               this->new_sa->get_unique_id(this->new_sa),
+               this->ike_sa->get_my_host(this->ike_sa),
+               this->ike_sa->get_my_id(this->ike_sa),
+               this->ike_sa->get_other_host(this->ike_sa),
+               this->ike_sa->get_other_id(this->ike_sa));
+
        to_delete = this->ike_sa->get_id(this->ike_sa);
        
        /* check for collisions */