diff options
author | Fredrik Gustafsson <[email protected]> | 2012-11-27 15:33:47 +0100 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2012-11-27 15:33:47 +0100 |
commit | 9971f38968b19ba90e0267b8c7a549fc568d5611 (patch) | |
tree | 81da409d5262ddf2ca4525788be60c6be3d08552 /lib/ssh/src/ssh.erl | |
parent | 2d974c56b23a7544b13f78061850a877316ae938 (diff) | |
download | otp-9971f38968b19ba90e0267b8c7a549fc568d5611.tar.gz otp-9971f38968b19ba90e0267b8c7a549fc568d5611.tar.bz2 otp-9971f38968b19ba90e0267b8c7a549fc568d5611.zip |
Basic functionality for sftp ver6 and testcase
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..22c55f8bf0 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([{sftp_vsn, _} = 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({sftp_vsn, Value} = Opt) when is_integer(Value), Value > 0, Value < 7 -> + Opt; handle_ssh_option(Opt) -> throw({error, {eoptions, Opt}}). |