diff options
Diffstat (limited to 'src/consts.rs')
-rw-r--r-- | src/consts.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/consts.rs b/src/consts.rs index 0aa644d..1d4947d 100644 --- a/src/consts.rs +++ b/src/consts.rs @@ -16,6 +16,8 @@ lazy_static! { pub static ref TIMER_RESOLUTION : Duration = Duration::from_millis(100); pub static ref COOKIE_REFRESH_TIME : Duration = Duration::new(120, 0); + + pub static ref MAX_HANDSHAKE_ATTEMPTS : u64 = REKEY_ATTEMPT_TIME.as_secs() / REKEY_TIMEOUT.as_secs() - 1; } // transport ratcheting message limits, in seconds |