diff options
author | Hans Nilsson <[email protected]> | 2015-08-26 09:54:11 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2015-08-26 09:54:11 +0200 |
commit | 5e775a5a61f4f4549fda1ad0d9d428d0977217af (patch) | |
tree | b4cd46d475059d6af33bb3eace42d26a84436b5c /lib/ssh/src/ssh.erl | |
parent | 624f7c336af233186da0fe0f972fc2dcd214c4f9 (diff) | |
parent | b78c3b351fc955aa14bdfc3577890031ffffa9f0 (diff) | |
download | otp-5e775a5a61f4f4549fda1ad0d9d428d0977217af.tar.gz otp-5e775a5a61f4f4549fda1ad0d9d428d0977217af.tar.bz2 otp-5e775a5a61f4f4549fda1ad0d9d428d0977217af.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/ssh/src/ssh.erl')
-rw-r--r-- | lib/ssh/src/ssh.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ssh/src/ssh.erl b/lib/ssh/src/ssh.erl index 5b2e0a988c..132de71aed 100644 --- a/lib/ssh/src/ssh.erl +++ b/lib/ssh/src/ssh.erl @@ -397,6 +397,8 @@ handle_option([{id_string, _ID} = Opt|Rest], SocketOptions, SshOptions) -> handle_option(Rest, SocketOptions, [handle_ssh_option(Opt) | SshOptions]); handle_option([{profile, _ID} = Opt|Rest], SocketOptions, SshOptions) -> handle_option(Rest, SocketOptions, [handle_ssh_option(Opt) | SshOptions]); +handle_option([{max_random_length_padding, _Bool} = 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). @@ -515,6 +517,9 @@ handle_ssh_option({id_string, random}) -> {id_string, {random,2,5}}; %% 2 - 5 random characters handle_ssh_option({id_string, ID} = Opt) when is_list(ID) -> Opt; +handle_ssh_option({max_random_length_padding, Value} = Opt) when is_integer(Value), + Value =< 255 -> + Opt; handle_ssh_option({profile, Value} = Opt) when is_atom(Value) -> Opt; handle_ssh_option(Opt) -> |