diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2007-05-18 12:25:37 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2007-05-18 12:25:37 +0000 |
commit | 6e04f25313223cfc0fe555439a61b702dd94563d (patch) | |
tree | 8924148f36bd05a69ca79268a552b0c69b83d41e /src/charon/sa/tasks/ike_auth.c | |
parent | a11cd0a102748bca0cc27f1261505867f6314eb7 (diff) | |
download | strongswan-6e04f25313223cfc0fe555439a61b702dd94563d.tar.bz2 strongswan-6e04f25313223cfc0fe555439a61b702dd94563d.tar.xz |
support of CA-based ipsec policies
Diffstat (limited to 'src/charon/sa/tasks/ike_auth.c')
-rw-r--r-- | src/charon/sa/tasks/ike_auth.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/charon/sa/tasks/ike_auth.c b/src/charon/sa/tasks/ike_auth.c index 4eaf1b0c6..d0dd49aee 100644 --- a/src/charon/sa/tasks/ike_auth.c +++ b/src/charon/sa/tasks/ike_auth.c @@ -511,15 +511,6 @@ static status_t process_r(private_ike_auth_t *this, message_t *message) return NEED_MORE; } - config = charon->backends->get_peer_cfg(charon->backends, - this->ike_sa->get_my_id(this->ike_sa), - this->ike_sa->get_other_id(this->ike_sa)); - if (config) - { - this->ike_sa->set_peer_cfg(this->ike_sa, config); - config->destroy(config); - } - switch (process_auth(this, message)) { case SUCCESS: @@ -532,6 +523,17 @@ static status_t process_r(private_ike_auth_t *this, message_t *message) default: break; } + + config = charon->backends->get_peer_cfg(charon->backends, + this->ike_sa->get_my_id(this->ike_sa), + this->ike_sa->get_other_id(this->ike_sa), + this->ike_sa->get_other_ca(this->ike_sa)); + if (config) + { + this->ike_sa->set_peer_cfg(this->ike_sa, config); + config->destroy(config); + } + return NEED_MORE; } |