From a053401a7a7142d4d2a068b2945ef91cb7957f89 Mon Sep 17 00:00:00 2001 From: Hans Nilsson Date: Wed, 19 Apr 2017 14:04:05 +0200 Subject: ssh: server-sig-algs, server side --- lib/ssh/src/ssh_transport.erl | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'lib/ssh/src') diff --git a/lib/ssh/src/ssh_transport.erl b/lib/ssh/src/ssh_transport.erl index d623d24529..3c2c345261 100644 --- a/lib/ssh/src/ssh_transport.erl +++ b/lib/ssh/src/ssh_transport.erl @@ -710,12 +710,12 @@ kex_ext_info(Role, Opts) -> end. ext_info_message(#ssh{role=client, - algorithms=#alg{send_ext_info=true}} = Ssh0) -> - %% FIXME: no extensions implemented for clients + send_ext_info=true} = Ssh0) -> + %% FIXME: no extensions implemented {ok, "", Ssh0}; ext_info_message(#ssh{role=server, - algorithms=#alg{send_ext_info=true}} = Ssh0) -> + send_ext_info=true} = Ssh0) -> AlgsList = lists:map(fun erlang:atom_to_list/1, ssh_transport:default_algorithms(public_key)), Msg = #ssh_msg_ext_info{nr_extensions = 1, @@ -729,10 +729,8 @@ ext_info_message(Ssh0) -> %%%---------------------------------------------------------------- %% select session id -sid(#ssh{session_id = undefined}, H) -> - H; -sid(#ssh{session_id = Id}, _) -> - Id. +sid(#ssh{session_id = undefined}, H) -> H; +sid(#ssh{session_id = Id}, _) -> Id. %% %% The host key should be read from storage -- cgit v1.2.3