]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
vici: Use a default IKE rekey time of 4 hours
authorMartin Willi <martin@revosec.ch>
Tue, 29 Apr 2014 09:18:21 +0000 (11:18 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 7 May 2014 12:13:38 +0000 (14:13 +0200)
src/libcharon/plugins/vici/vici_config.c

index 7940e138278ad36c644fd1520ddfda5ec483e608..d0b95b861cc4bf64d9051bba043a254a98e36c63 100644 (file)
  */
 #define LFT_UNDEFINED (~(u_int64_t)0)
 
+/**
+ * Default IKE rekey time
+ */
+#define LFT_DEFAULT_IKE_REKEY (4 * 60 * 60)
+
 typedef struct private_vici_config_t private_vici_config_t;
 
 /**
@@ -1684,6 +1689,7 @@ CALLBACK(config_sn, bool,
                .fragmentation = FRAGMENTATION_NO,
                .unique = UNIQUE_NO,
                .keyingtries = 1,
+               .rekey_time = LFT_DEFAULT_IKE_REKEY,
                .over_time = LFT_UNDEFINED,
                .rand_time = LFT_UNDEFINED,
        };