aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2018-11-07 15:01:39 +0100
committerHans Nilsson <[email protected]>2018-11-07 15:16:37 +0100
commit434090c14c0d1692c3eaeebb97c9b86c3dff01a5 (patch)
tree8413b6e0abf63abab8ee4312be47f7afd8328431 /lib/ssh
parent203d20aeb89e513b71624d0c12952352e6ca3525 (diff)
downloadotp-434090c14c0d1692c3eaeebb97c9b86c3dff01a5.tar.gz
otp-434090c14c0d1692c3eaeebb97c9b86c3dff01a5.tar.bz2
otp-434090c14c0d1692c3eaeebb97c9b86c3dff01a5.zip
ssh: Fix SSH_MSG_EXT_INFO bug for OTP SSH as server
The wrong set of supported public keys was sent to the client.
Diffstat (limited to 'lib/ssh')
-rw-r--r--lib/ssh/src/ssh_transport.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ssh/src/ssh_transport.erl b/lib/ssh/src/ssh_transport.erl
index edc927e807..6820f534cb 100644
--- a/lib/ssh/src/ssh_transport.erl
+++ b/lib/ssh/src/ssh_transport.erl
@@ -772,8 +772,7 @@ ext_info_message(#ssh{role=server,
send_ext_info=true,
opts = Opts} = Ssh0) ->
AlgsList = lists:map(fun erlang:atom_to_list/1,
- proplists:get_value(public_key,
- ?GET_OPT(preferred_algorithms, Opts))),
+ ?GET_OPT(pref_public_key_algs, Opts)),
Msg = #ssh_msg_ext_info{nr_extensions = 1,
data = [{"server-sig-algs", string:join(AlgsList,",")}]
},