diff options
author | Hans Nilsson <[email protected]> | 2017-05-16 11:56:55 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2017-05-16 11:56:55 +0200 |
commit | 83e8f4a0ca6a12cf960e73e25db88929ed4151da (patch) | |
tree | b1552e978b59007d6674a1f8fa175b540a288d3c /lib/ssh/src/ssh_connection_handler.erl | |
parent | 8fd3466d1fef48a09a45f7fd7f031addf3855dc2 (diff) | |
parent | 242dddbc918c87571013e7e0acd29b4abbe12911 (diff) | |
download | otp-83e8f4a0ca6a12cf960e73e25db88929ed4151da.tar.gz otp-83e8f4a0ca6a12cf960e73e25db88929ed4151da.tar.bz2 otp-83e8f4a0ca6a12cf960e73e25db88929ed4151da.zip |
Merge branch 'hans/ssh/enable_auth_methods_for_clients/OTP-14399'
Diffstat (limited to 'lib/ssh/src/ssh_connection_handler.erl')
-rw-r--r-- | lib/ssh/src/ssh_connection_handler.erl | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/ssh/src/ssh_connection_handler.erl b/lib/ssh/src/ssh_connection_handler.erl index 342583306b..39bd54869f 100644 --- a/lib/ssh/src/ssh_connection_handler.erl +++ b/lib/ssh/src/ssh_connection_handler.erl @@ -434,11 +434,7 @@ init_ssh_record(Role, Socket, Opts) -> init_ssh_record(Role, _Socket, PeerAddr, Opts) -> KeyCb = ?GET_OPT(key_cb, Opts), - AuthMethods = - case Role of - server -> ?GET_OPT(auth_methods, Opts); - client -> undefined - end, + AuthMethods = ?GET_OPT(auth_methods, Opts), S0 = #ssh{role = Role, key_cb = KeyCb, opts = Opts, |