aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/config/peer_cfg.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2011-11-24 11:38:37 +0100
committerMartin Willi <martin@revosec.ch>2012-03-20 17:30:52 +0100
commitd08269c700d19bc362e6bd070abf69e87c42f025 (patch)
tree9c4dc69f58cda14f1f07436ee8b447a54aa86b33 /src/libcharon/config/peer_cfg.h
parentb03c700d08aed1b29f02867608f9bc0037d2ae8f (diff)
downloadstrongswan-d08269c700d19bc362e6bd070abf69e87c42f025.tar.bz2
strongswan-d08269c700d19bc362e6bd070abf69e87c42f025.tar.xz
Added a get_rekey/reauth_time() jitter parameter to get time without randomization
Diffstat (limited to 'src/libcharon/config/peer_cfg.h')
-rw-r--r--src/libcharon/config/peer_cfg.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/libcharon/config/peer_cfg.h b/src/libcharon/config/peer_cfg.h
index 6096f6413..33309d116 100644
--- a/src/libcharon/config/peer_cfg.h
+++ b/src/libcharon/config/peer_cfg.h
@@ -227,18 +227,20 @@ struct peer_cfg_t {
u_int32_t (*get_keyingtries) (peer_cfg_t *this);
/**
- * Get a time to start rekeying (is randomized with jitter).
+ * Get a time to start rekeying.
*
+ * @param jitter remove a jitter value to randomize time
* @return time in s when to start rekeying, 0 disables rekeying
*/
- u_int32_t (*get_rekey_time)(peer_cfg_t *this);
+ u_int32_t (*get_rekey_time)(peer_cfg_t *this, bool jitter);
/**
- * Get a time to start reauthentication (is randomized with jitter).
+ * Get a time to start reauthentication.
*
+ * @param jitter remove a jitter value to randomize time
* @return time in s when to start reauthentication, 0 disables it
*/
- u_int32_t (*get_reauth_time)(peer_cfg_t *this);
+ u_int32_t (*get_reauth_time)(peer_cfg_t *this, bool jitter);
/**
* Get the timeout of a rekeying/reauthenticating SA.