aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/stroke/stroke_config.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2012-09-10 17:24:21 +0200
committerTobias Brunner <tobias@strongswan.org>2012-09-10 17:37:18 +0200
commitf4cc7ea11b742dbd97b380b4aee032b38a6c00cf (patch)
tree62ee6537bd0bb8e9ab518ace0499c0b7a36462a2 /src/libcharon/plugins/stroke/stroke_config.c
parentc51af950b1ede996ca5f04c1f5a425527a00227f (diff)
downloadstrongswan-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/plugins/stroke/stroke_config.c')
-rw-r--r--src/libcharon/plugins/stroke/stroke_config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libcharon/plugins/stroke/stroke_config.c b/src/libcharon/plugins/stroke/stroke_config.c
index e3c78f750..fd1182619 100644
--- a/src/libcharon/plugins/stroke/stroke_config.c
+++ b/src/libcharon/plugins/stroke/stroke_config.c
@@ -690,6 +690,9 @@ static peer_cfg_t *build_peer_cfg(private_stroke_config_t *this,
case 3: /* keep */
unique = UNIQUE_KEEP;
break;
+ case 4: /* never */
+ unique = UNIQUE_NEVER;
+ break;
default: /* no */
unique = UNIQUE_NO;
break;