diff options
author | Hans Nilsson <[email protected]> | 2015-09-28 13:09:01 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2015-10-08 16:03:10 +0200 |
commit | 23bdf367342d15cb3e9064df82faa285d021202d (patch) | |
tree | 881c54c2bc5e994d03ef03c59d6529c8bc85e29b /lib/ssh/src/ssh_connection_handler.erl | |
parent | 437448c16ac18208838a638717309ee0294b004e (diff) | |
download | otp-23bdf367342d15cb3e9064df82faa285d021202d.tar.gz otp-23bdf367342d15cb3e9064df82faa285d021202d.tar.bz2 otp-23bdf367342d15cb3e9064df82faa285d021202d.zip |
ssh: ECDSA public key implemented
Diffstat (limited to 'lib/ssh/src/ssh_connection_handler.erl')
-rw-r--r-- | lib/ssh/src/ssh_connection_handler.erl | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/ssh/src/ssh_connection_handler.erl b/lib/ssh/src/ssh_connection_handler.erl index ee1dd5c9ce..7fb86c1108 100644 --- a/lib/ssh/src/ssh_connection_handler.erl +++ b/lib/ssh/src/ssh_connection_handler.erl @@ -1266,9 +1266,9 @@ supported_host_keys(client, _, Options) -> proplists:get_value(preferred_algorithms,Options,[]) ) of undefined -> - ssh_auth:default_public_key_algorithms(); + ssh_transport:default_algorithms(public_key); L -> - L -- (L--ssh_auth:default_public_key_algorithms()) + L -- (L--ssh_transport:default_algorithms(public_key)) end of [] -> @@ -1280,21 +1280,17 @@ supported_host_keys(client, _, Options) -> {stop, {shutdown, Reason}} end; supported_host_keys(server, KeyCb, Options) -> - Algs= [atom_to_list(A) || A <- proplists:get_value(public_key, proplists:get_value(preferred_algorithms,Options,[]), - ssh_auth:default_public_key_algorithms() + ssh_transport:default_algorithms(public_key) ), available_host_key(KeyCb, A, Options) - ], - Algs. - + ]. %% Alg :: atom() available_host_key(KeyCb, Alg, Opts) -> element(1, catch KeyCb:host_key(Alg, Opts)) == ok. - send_msg(Msg, #state{socket = Socket, transport_cb = Transport}) -> Transport:send(Socket, Msg). |