aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2017-05-11 15:19:18 +0200
committerHans Nilsson <[email protected]>2017-05-17 15:18:28 +0200
commit90de09b680d33bf4e048771381134ac8d7e0fa70 (patch)
treeb8732379d882a1f1a9df32d2830a5b455393898f /lib/ssh/src
parentebd2baf9c433d489aff66f14505b5c221ba04165 (diff)
downloadotp-90de09b680d33bf4e048771381134ac8d7e0fa70.tar.gz
otp-90de09b680d33bf4e048771381134ac8d7e0fa70.tar.bz2
otp-90de09b680d33bf4e048771381134ac8d7e0fa70.zip
ssh: select server-sig-algs from configured algos (preferred_algorithms)
Diffstat (limited to 'lib/ssh/src')
-rw-r--r--lib/ssh/src/ssh_transport.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ssh/src/ssh_transport.erl b/lib/ssh/src/ssh_transport.erl
index bd1cb4bd22..cebbec7792 100644
--- a/lib/ssh/src/ssh_transport.erl
+++ b/lib/ssh/src/ssh_transport.erl
@@ -741,9 +741,11 @@ ext_info_message(#ssh{role=client,
end;
ext_info_message(#ssh{role=server,
- send_ext_info=true} = Ssh0) ->
+ send_ext_info=true,
+ opts = Opts} = Ssh0) ->
AlgsList = lists:map(fun erlang:atom_to_list/1,
- ssh_transport:default_algorithms(public_key)),
+ proplists:get_value(public_key,
+ ?GET_OPT(preferred_algorithms, Opts))),
Msg = #ssh_msg_ext_info{nr_extensions = 1,
data = [{"server-sig-algs", string:join(AlgsList,",")}]
},