diff options
author | Fredrik Gustafsson <[email protected]> | 2012-11-21 16:07:27 +0100 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2012-11-23 14:52:06 +0100 |
commit | 3f671b2da7634f2f5c53c6622abb0eb6bf9938fb (patch) | |
tree | 3686b89b4323fd080524e09c403da9e0db830935 /lib/ssh/src/ssh.erl | |
parent | 19bc00736ee2621f4016d53d3270334dd998cb34 (diff) | |
download | otp-3f671b2da7634f2f5c53c6622abb0eb6bf9938fb.tar.gz otp-3f671b2da7634f2f5c53c6622abb0eb6bf9938fb.tar.bz2 otp-3f671b2da7634f2f5c53c6622abb0eb6bf9938fb.zip |
Renegotiating every hour and every gb sent, can be decreased with option {rekey_limit, integer()}
Diffstat (limited to 'lib/ssh/src/ssh.erl')
-rw-r--r-- | lib/ssh/src/ssh.erl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ssh/src/ssh.erl b/lib/ssh/src/ssh.erl index 719c97e940..de52913194 100644 --- a/lib/ssh/src/ssh.erl +++ b/lib/ssh/src/ssh.erl @@ -364,6 +364,8 @@ handle_option([{quiet_mode, _} = Opt|Rest], SocketOptions, SshOptions) -> handle_option(Rest, SocketOptions, [handle_ssh_option(Opt) | SshOptions]); handle_option([{idle_time, _} = Opt | Rest], SocketOptions, SshOptions) -> handle_option(Rest, SocketOptions, [handle_ssh_option(Opt) | SshOptions]); +handle_option([{rekey_limit, _} = Opt|Rest], SocketOptions, SshOptions) -> + handle_option(Rest, SocketOptions, [handle_ssh_option(Opt) | SshOptions]); handle_option([Opt | Rest], SocketOptions, SshOptions) -> handle_option(Rest, [handle_inet_option(Opt) | SocketOptions], SshOptions). @@ -440,6 +442,8 @@ handle_ssh_option({quiet_mode, Value} = Opt) when Value == true; Opt; handle_ssh_option({idle_time, Value} = Opt) when is_integer(Value), Value > 0 -> Opt; +handle_ssh_option({rekey_limit, Value} = Opt) when is_integer(Value) -> + Opt; handle_ssh_option(Opt) -> throw({error, {eoptions, Opt}}). |