diff options
author | Hans Nilsson <[email protected]> | 2018-05-09 11:42:49 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2018-05-09 12:10:21 +0200 |
commit | ebcece7f317f6d4e4d580c1f5629f4f46defe272 (patch) | |
tree | 63cfe60c2fee11f4f73a8b95bed4f849dadc72e7 /lib/ssh/src/ssh.hrl | |
parent | 79e3c477f8d0d8ea397820847c576e0a0aaa5323 (diff) | |
download | otp-ebcece7f317f6d4e4d580c1f5629f4f46defe272.tar.gz otp-ebcece7f317f6d4e4d580c1f5629f4f46defe272.tar.bz2 otp-ebcece7f317f6d4e4d580c1f5629f4f46defe272.zip |
ssh: Add infinity as values to rekey_limit
Zero is removed from the Minutes in the new tuple value to remove a loop possibility. The zero is kept for bytes since that is not dangerous and a removal would be an unnecssary incompatibility.
Diffstat (limited to 'lib/ssh/src/ssh.hrl')
-rw-r--r-- | lib/ssh/src/ssh.hrl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/ssh/src/ssh.hrl b/lib/ssh/src/ssh.hrl index fc0a3786ac..2efd239aae 100644 --- a/lib/ssh/src/ssh.hrl +++ b/lib/ssh/src/ssh.hrl @@ -191,10 +191,13 @@ -type user_dir_common_option() :: {user_dir, false | string()}. -type profile_common_option() :: {profile, atom() }. -type max_idle_time_common_option() :: {idle_time, timeout()}. --type rekey_limit_common_option() :: {rekey_limit, Bytes::non_neg_integer() | - {Minutes::non_neg_integer(), Bytes::non_neg_integer()} +-type rekey_limit_common_option() :: {rekey_limit, Bytes::limit_bytes() | + {Minutes::limit_time(), Bytes::limit_bytes()} }. +-type limit_bytes() :: non_neg_integer() | infinity . % non_neg_integer due to compatibility +-type limit_time() :: pos_integer() | infinity . + -type key_cb_common_option() :: {key_cb, Module::atom() | {Module::atom(),Opts::[term()]} } . -type disconnectfun_common_option() :: {disconnectfun, fun((Reason::term()) -> void | any()) }. |