aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2007-01-10 08:18:20 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2007-01-10 08:18:20 +0000
commitaf53aa9ec030f5004a3d6d44cf79acf9fdf15cf6 (patch)
tree1c05db55948f7e8f2f7fb3173b94d18b80ee2341
parenta40926c7eb4319672f7a62106ced60d0b9133157 (diff)
downloadstrongswan-af53aa9ec030f5004a3d6d44cf79acf9fdf15cf6.tar.bz2
strongswan-af53aa9ec030f5004a3d6d44cf79acf9fdf15cf6.tar.xz
show name of created CHILD_SA
-rw-r--r--src/charon/sa/transactions/ike_auth.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/charon/sa/transactions/ike_auth.c b/src/charon/sa/transactions/ike_auth.c
index 5d137f6c6..017372b7e 100644
--- a/src/charon/sa/transactions/ike_auth.c
+++ b/src/charon/sa/transactions/ike_auth.c
@@ -955,7 +955,8 @@ static status_t get_response(private_ike_auth_t *this, message_t *request,
if (install_child_sa(this, FALSE) != SUCCESS)
{
- SIG(CHILD_UP_FAILED, "installing CHILD_SA failed, no CHILD_SA created");
+ SIG(CHILD_UP_FAILED, "installing CHILD_SA '%s' failed, no CHILD_SA created",
+ this->policy->get_name(this->policy));
DBG1(DBG_IKE, "adding NO_PROPOSAL_CHOSEN notify to response");
build_notify(NO_PROPOSAL_CHOSEN, response, FALSE);
}
@@ -963,7 +964,8 @@ static status_t get_response(private_ike_auth_t *this, message_t *request,
{
/* add proposal to sa payload */
sa_response->add_proposal(sa_response, this->proposal);
- SIG(CHILD_UP_SUCCESS, "CHILD_SA created");
+ SIG(CHILD_UP_SUCCESS, "CHILD_SA '%s' created",
+ this->policy->get_name(this->policy));
}
}
response->add_payload(response, (payload_t*)sa_response);
@@ -1184,13 +1186,15 @@ static status_t conclude(private_ike_auth_t *this, message_t *response,
if (install_child_sa(this, TRUE) != SUCCESS)
{
- SIG(CHILD_UP_FAILED, "installing CHILD_SA failed, no CHILD_SA built");
+ SIG(CHILD_UP_FAILED, "installing CHILD_SA '%s' failed, no CHILD_SA built",
+ this->policy->get_name(this->policy));
/* TODO: we should send a DELETE for that CHILD to stay
* synchronous with the peer */
}
else
{
- SIG(CHILD_UP_SUCCESS, "CHILD_SA created");
+ SIG(CHILD_UP_SUCCESS, "CHILD_SA '%s' created",
+ this->policy->get_name(this->policy));
}
}
}