diff options
author | Martin Willi <martin@strongswan.org> | 2006-03-20 15:43:26 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-03-20 15:43:26 +0000 |
commit | 87a217f9f1640ed08dbe06564f6fbcd3cdfdeefb (patch) | |
tree | 928291a14cedbcb875d205b5a38527a37f515561 /Source/charon/sa/states/ike_auth_requested.c | |
parent | e8d25806f3281b71d2512e926c08f50f72d5d505 (diff) | |
download | strongswan-87a217f9f1640ed08dbe06564f6fbcd3cdfdeefb.tar.bz2 strongswan-87a217f9f1640ed08dbe06564f6fbcd3cdfdeefb.tar.xz |
- works quite well now with ipsec.conf & ipsec starter
Diffstat (limited to 'Source/charon/sa/states/ike_auth_requested.c')
-rw-r--r-- | Source/charon/sa/states/ike_auth_requested.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/charon/sa/states/ike_auth_requested.c b/Source/charon/sa/states/ike_auth_requested.c index c80b7f72a..3fedf431c 100644 --- a/Source/charon/sa/states/ike_auth_requested.c +++ b/Source/charon/sa/states/ike_auth_requested.c @@ -352,16 +352,17 @@ static status_t process_message(private_ike_auth_requested_t *this, message_t *i } this->ike_sa->set_last_replied_message_id(this->ike_sa,ike_auth_reply->get_message_id(ike_auth_reply)); + /* create new state */ + this->ike_sa->set_new_state(this->ike_sa, (state_t*)ike_sa_established_create(this->ike_sa)); + this->destroy_after_state_change(this); + connection = this->ike_sa->get_connection(this->ike_sa); my_host = connection->get_my_host(connection); other_host = connection->get_other_host(connection); - this->logger->log(this->logger, AUDIT, "IKE_SA established between %s - %s, authenticated peer with %s", - my_host->get_address(my_host), other_host->get_address(other_host), - mapping_find(auth_method_m, auth_payload->get_auth_method(auth_payload))); - - this->ike_sa->set_new_state(this->ike_sa, (state_t*)ike_sa_established_create(this->ike_sa)); - this->destroy_after_state_change(this); + this->logger->log(this->logger, AUDIT, "IKE_SA established between %s - %s", + my_host->get_address(my_host), other_host->get_address(other_host)); + return SUCCESS; } |