aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh.erl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2015-10-29 19:51:04 +0100
committerHans Nilsson <[email protected]>2015-11-04 12:09:56 +0100
commitc505918a86fb9ac8c19e47cd751a9db4e2d9efb2 (patch)
treed0f0c0c284b906a3c55d5951f301b8287da3fc93 /lib/ssh/src/ssh.erl
parent4f085471fc4e1886bd7549cf135e7038a87e6a8e (diff)
downloadotp-c505918a86fb9ac8c19e47cd751a9db4e2d9efb2.tar.gz
otp-c505918a86fb9ac8c19e47cd751a9db4e2d9efb2.tar.bz2
otp-c505918a86fb9ac8c19e47cd751a9db4e2d9efb2.zip
ssh: pwdfun/4 and simple tests
Also solves OTP-13053
Diffstat (limited to 'lib/ssh/src/ssh.erl')
-rw-r--r--lib/ssh/src/ssh.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ssh/src/ssh.erl b/lib/ssh/src/ssh.erl
index 049018b21c..6f79b48091 100644
--- a/lib/ssh/src/ssh.erl
+++ b/lib/ssh/src/ssh.erl
@@ -462,7 +462,9 @@ handle_ssh_option({password, Value} = Opt) when is_list(Value) ->
Opt;
handle_ssh_option({user_passwords, Value} = Opt) when is_list(Value)->
Opt;
-handle_ssh_option({pwdfun, Value} = Opt) when is_function(Value) ->
+handle_ssh_option({pwdfun, Value} = Opt) when is_function(Value,2) ->
+ Opt;
+handle_ssh_option({pwdfun, Value} = Opt) when is_function(Value,4) ->
Opt;
handle_ssh_option({key_cb, Value} = Opt) when is_atom(Value) ->
Opt;