aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2017-04-27 14:58:47 +0200
committerHans Nilsson <[email protected]>2017-04-27 14:59:22 +0200
commit6f26467274a77d0838596775f3e7e6a33aad7273 (patch)
tree65f928a1bca3c7f897685006cd8cba0887b8249e /lib/ssh
parent9bcd621df2abf35394cd9f68b42c446d3ab83f11 (diff)
downloadotp-6f26467274a77d0838596775f3e7e6a33aad7273.tar.gz
otp-6f26467274a77d0838596775f3e7e6a33aad7273.tar.bz2
otp-6f26467274a77d0838596775f3e7e6a33aad7273.zip
ssh: Don't expose new rsa-sha2-* as default
Diffstat (limited to 'lib/ssh')
-rw-r--r--lib/ssh/src/ssh_transport.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ssh/src/ssh_transport.erl b/lib/ssh/src/ssh_transport.erl
index 09b5d1ac81..7c7dda7a1e 100644
--- a/lib/ssh/src/ssh_transport.erl
+++ b/lib/ssh/src/ssh_transport.erl
@@ -92,6 +92,10 @@ default_algorithms(cipher) ->
default_algorithms(mac) ->
supported_algorithms(mac, same(['AEAD_AES_128_GCM',
'AEAD_AES_256_GCM']));
+default_algorithms(public_key) ->
+ supported_algorithms(public_key, ['rsa-sha2-256',
+ 'rsa-sha2-384',
+ 'rsa-sha2-512']);
default_algorithms(Alg) ->
supported_algorithms(Alg, []).