aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2009-09-10 14:42:17 +0200
committerMartin Willi <martin@revosec.ch>2010-04-07 13:55:13 +0200
commit724736ff1c89bf8e58c03294b37cee2f64f560f7 (patch)
tree3b6e748ff9213022ef9c61e8baa142fff63d4584 /src
parentf82523859490907ee794218021831a7ed6220e3c (diff)
downloadstrongswan-724736ff1c89bf8e58c03294b37cee2f64f560f7.tar.bz2
strongswan-724736ff1c89bf8e58c03294b37cee2f64f560f7.tar.xz
updated HA sync plugin to new lifetime config
Diffstat (limited to 'src')
-rw-r--r--src/charon/plugins/ha_sync/ha_sync_socket.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/charon/plugins/ha_sync/ha_sync_socket.c b/src/charon/plugins/ha_sync/ha_sync_socket.c
index 5587e517e..3432d7b8e 100644
--- a/src/charon/plugins/ha_sync/ha_sync_socket.c
+++ b/src/charon/plugins/ha_sync/ha_sync_socket.c
@@ -312,6 +312,11 @@ static void setup_sync_tunnel(private_ha_sync_socket_t *this)
auth_cfg_t *auth_cfg;
child_cfg_t *child_cfg;
traffic_selector_t *ts;
+ lifetime_cfg_t lifetime = {
+ .time = {
+ .life = 21600, .rekey = 20400, .jitter = 400,
+ },
+ };
secret = lib->settings->get_str(lib->settings,
"charon.plugins.ha_sync.secret", NULL);
@@ -357,7 +362,7 @@ static void setup_sync_tunnel(private_ha_sync_socket_t *this)
identification_create_from_string(remote));
peer_cfg->add_auth_cfg(peer_cfg, auth_cfg, FALSE);
- child_cfg = child_cfg_create("ha-sync", 0, 21600, 1200, FALSE, TRUE,
+ child_cfg = child_cfg_create("ha-sync", &lifetime, NULL, TRUE,
MODE_TRANSPORT, ACTION_NONE, ACTION_NONE, FALSE);
ts = traffic_selector_create_dynamic(0, HA_SYNC_PORT, HA_SYNC_PORT);
child_cfg->add_traffic_selector(child_cfg, TRUE, ts);