diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-09-10 17:24:21 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-09-10 17:37:18 +0200 |
commit | f4cc7ea11b742dbd97b380b4aee032b38a6c00cf (patch) | |
tree | 62ee6537bd0bb8e9ab518ace0499c0b7a36462a2 /src/libcharon/sa/ikev2/tasks/ike_auth.c | |
parent | c51af950b1ede996ca5f04c1f5a425527a00227f (diff) | |
download | strongswan-f4cc7ea11b742dbd97b380b4aee032b38a6c00cf.tar.bz2 strongswan-f4cc7ea11b742dbd97b380b4aee032b38a6c00cf.tar.xz |
Add uniqueids=never to ignore INITIAL_CONTACT notifies
With uniqueids=no the daemon still deletes any existing IKE_SA with the
same peer if an INITIAL_CONTACT notify is received. With this new option
it also ignores these notifies.
Diffstat (limited to 'src/libcharon/sa/ikev2/tasks/ike_auth.c')
-rw-r--r-- | src/libcharon/sa/ikev2/tasks/ike_auth.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcharon/sa/ikev2/tasks/ike_auth.c b/src/libcharon/sa/ikev2/tasks/ike_auth.c index 36f8acfd1..7d462f1a7 100644 --- a/src/libcharon/sa/ikev2/tasks/ike_auth.c +++ b/src/libcharon/sa/ikev2/tasks/ike_auth.c @@ -435,7 +435,8 @@ METHOD(task_t, build_i, status_t, message->add_payload(message, (payload_t*)id_payload); if (idr && message->get_message_id(message) == 1 && - this->peer_cfg->get_unique_policy(this->peer_cfg) != UNIQUE_NO) + this->peer_cfg->get_unique_policy(this->peer_cfg) != UNIQUE_NO && + this->peer_cfg->get_unique_policy(this->peer_cfg) != UNIQUE_NEVER) { host_t *host; |