aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2018-08-14 13:29:23 +0200
committerHans Nilsson <[email protected]>2018-08-16 17:45:28 +0200
commitced9c4ce61fc4b1bc3f9150d86da43485e590de5 (patch)
tree67dd09fba11e977304869a5cf7dfe755412a2ffb /lib/ssh
parenta6436b00e545e388326c621f1884bad3918a79b4 (diff)
downloadotp-ced9c4ce61fc4b1bc3f9150d86da43485e590de5.tar.gz
otp-ced9c4ce61fc4b1bc3f9150d86da43485e590de5.tar.bz2
otp-ced9c4ce61fc4b1bc3f9150d86da43485e590de5.zip
ssh: Use the 'macs' tag in crypto:supports/0
Diffstat (limited to 'lib/ssh')
-rw-r--r--lib/ssh/src/ssh_transport.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ssh/src/ssh_transport.erl b/lib/ssh/src/ssh_transport.erl
index 562f204de4..b6d7aa0b1b 100644
--- a/lib/ssh/src/ssh_transport.erl
+++ b/lib/ssh/src/ssh_transport.erl
@@ -174,9 +174,9 @@ supported_algorithms(cipher) ->
supported_algorithms(mac) ->
same(
select_crypto_supported(
- [{'hmac-sha2-256', [{hashs,sha256}]},
- {'hmac-sha2-512', [{hashs,sha512}]},
- {'hmac-sha1', [{hashs,sha}]},
+ [{'hmac-sha2-256', [{macs,hmac}, {hashs,sha256}]},
+ {'hmac-sha2-512', [{macs,hmac}, {hashs,sha512}]},
+ {'hmac-sha1', [{macs,hmac}, {hashs,sha}]},
{'AEAD_AES_128_GCM', [{ciphers,{aes_gcm,128}}]},
{'AEAD_AES_256_GCM', [{ciphers,{aes_gcm,256}}]}
]