]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
not detaching from bus when IKE_SA_INIT is retried
authorMartin Willi <martin@strongswan.org>
Tue, 13 Mar 2007 14:55:53 +0000 (14:55 -0000)
committerMartin Willi <martin@strongswan.org>
Tue, 13 Mar 2007 14:55:53 +0000 (14:55 -0000)
src/charon/sa/tasks/ike_auth.h
src/charon/sa/tasks/ike_init.c

index e59e6811a0d6213136283d361df42d8b867f029a..d7326c9884ddc4f5ba40da03e16928e054419b2a 100644 (file)
@@ -30,10 +30,14 @@ typedef struct ike_auth_t ike_auth_t;
 #include <sa/tasks/task.h>
 
 /**
- * @brief Task of type ike_auth, authenticates an IKE_SA authenticators.
+ * @brief Task of type ike_auth, authenticates an IKE_SA using authenticators.
  *
  * The ike_auth task authenticates the IKE_SA using the IKE_AUTH
- * exchange. 
+ * exchange. It processes and build IDi and IDr payloads and also
+ * handles AUTH payloads. The AUTH payloads are passed to authenticator_t's,
+ * which do the actual authentication process. If the ike_auth task is used
+ * with EAP authentication, it stays alive over multiple exchanges until
+ * EAP has completed.
  *
  * @b Constructors:
  *  - ike_auth_create()
@@ -53,7 +57,7 @@ struct ike_auth_t {
  *
  * @param ike_sa               IKE_SA this task works for
  * @param initiator            TRUE if thask is the initator of an exchange
- * @return                       ike_auth task to handle by the task_manager
+ * @return                             ike_auth task to handle by the task_manager
  */
 ike_auth_t *ike_auth_create(ike_sa_t *ike_sa, bool initiator);
 
index 59d93c5a397c98265375623a6525f456f5e5fe2e..d49209aaa2aa10f62f880eeb7144b1f1caf15204 100644 (file)
@@ -404,8 +404,8 @@ static status_t process_i(private_ike_init_t *this, message_t *message)
                                        if (!this->connection->check_dh_group(this->connection,
                                                                                                                  this->dh_group))
                                        {
-                                               SIG(IKE_UP_FAILED, "requested DH group %N not "
-                                                       "acceptable, giving up", diffie_hellman_group_names,
+                                               DBG1(DBG_IKE, "requested DH group %N not acceptable, "
+                                                       "giving up", diffie_hellman_group_names,
                                                        this->dh_group);
                                                iterator->destroy(iterator);
                                                return FAILED;
@@ -425,8 +425,7 @@ static status_t process_i(private_ike_init_t *this, message_t *message)
                                        this->cookie = chunk_clone(notify->get_notification_data(notify));
                                        this->ike_sa->reset(this->ike_sa);
                                        iterator->destroy(iterator);
-                                       SIG(IKE_UP_FAILED, "received %N notify",
-                                               notify_type_names, type);
+                                       DBG1(DBG_IKE, "received %N notify", notify_type_names, type);
                                        return NEED_MORE;
                                }
                                default: