diff options
author | Hans Nilsson <[email protected]> | 2017-05-18 20:52:53 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2017-05-22 12:44:00 +0200 |
commit | 594d84311dd22658df695f238ac562fdcba9f060 (patch) | |
tree | f4983148f5632987fec330a8ca3d2a6ac01fb27f /lib/ssh | |
parent | 8d26eb5a9ccca27f926d1ed01d11a8ac0f55cf5a (diff) | |
download | otp-594d84311dd22658df695f238ac562fdcba9f060.tar.gz otp-594d84311dd22658df695f238ac562fdcba9f060.tar.bz2 otp-594d84311dd22658df695f238ac562fdcba9f060.zip |
Revert "ssh: disable rsa-sha2-* for clients"
This reverts commit 4d7ff0a8169141d18335638cf7c6e48d4c18cdf2.
Diffstat (limited to 'lib/ssh')
-rw-r--r-- | lib/ssh/src/ssh_options.erl | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/lib/ssh/src/ssh_options.erl b/lib/ssh/src/ssh_options.erl index 12c0190082..aebb5a7062 100644 --- a/lib/ssh/src/ssh_options.erl +++ b/lib/ssh/src/ssh_options.erl @@ -392,12 +392,6 @@ default(server) -> class => user_options }, - {preferred_algorithms, def} => - #{default => ssh:default_algorithms(), - chk => fun check_preferred_algorithms/1, - class => user_options - }, - %%%%% Undocumented {infofun, def} => #{default => fun(_,_,_) -> void end, @@ -436,26 +430,11 @@ default(client) -> }, {pref_public_key_algs, def} => - #{default => ssh_transport:default_algorithms(public_key) -- ['rsa-sha2-256', - 'rsa-sha2-512'], + #{default => ssh_transport:default_algorithms(public_key), chk => fun check_pref_public_key_algs/1, class => user_options }, - {preferred_algorithms, def} => - #{default => [{K,Vs} || {K,Vs0} <- ssh:default_algorithms(), - Vs <- [case K of - public_key -> - Vs0 -- ['rsa-sha2-256', - 'rsa-sha2-512']; - _ -> - Vs0 - end] - ], - chk => fun check_preferred_algorithms/1, - class => user_options - }, - {dh_gex_limits, def} => #{default => {1024, 6144, 8192}, % FIXME: Is this true nowadays? chk => fun({Min,I,Max}) -> @@ -521,6 +500,12 @@ default(common) -> class => user_options }, + {preferred_algorithms, def} => + #{default => ssh:default_algorithms(), + chk => fun check_preferred_algorithms/1, + class => user_options + }, + {id_string, def} => #{default => undefined, % FIXME: see ssh_transport:ssh_vsn/0 chk => fun(random) -> |