aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2017-04-19 14:04:05 +0200
committerHans Nilsson <[email protected]>2017-04-26 12:15:03 +0200
commita053401a7a7142d4d2a068b2945ef91cb7957f89 (patch)
tree1ee30899f0bc6e3bda8bac2a4fd061e01c98d60e /lib
parent519f89016e7ce755775a88730814fa34af21676c (diff)
downloadotp-a053401a7a7142d4d2a068b2945ef91cb7957f89.tar.gz
otp-a053401a7a7142d4d2a068b2945ef91cb7957f89.tar.bz2
otp-a053401a7a7142d4d2a068b2945ef91cb7957f89.zip
ssh: server-sig-algs, server side
Diffstat (limited to 'lib')
-rw-r--r--lib/ssh/src/ssh_transport.erl12
1 files changed, 5 insertions, 7 deletions
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