diff options
author | Dirkjan Bussink <d.bussink@gmail.com> | 2014-04-20 10:07:40 +0000 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-04-22 10:57:00 +0200 |
commit | 262c82ac0661bb0be46477006ed366e401c1620f (patch) | |
tree | f93607b1740c37592ee1f779ebf7cabb8ae9f373 /src/kex.c | |
parent | 164b8e99cce70c83d2ef3e2c2b832a514a0ac908 (diff) | |
download | libssh-262c82ac0661bb0be46477006ed366e401c1620f.tar.gz libssh-262c82ac0661bb0be46477006ed366e401c1620f.tar.xz libssh-262c82ac0661bb0be46477006ed366e401c1620f.zip |
Add negotiation for SHA2 HMAC algorithms
BUG: https://red.libssh.org/issues/91
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/kex.c')
-rw-r--r-- | src/kex.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -88,8 +88,8 @@ static const char *default_methods[] = { HOSTKEYS, AES BLOWFISH DES, AES BLOWFISH DES, - "hmac-sha1", - "hmac-sha1", + "hmac-sha1,hmac-sha2-256,hmac-sha2-512", + "hmac-sha1,hmac-sha2-256,hmac-sha2-512", "none", "none", "", @@ -103,8 +103,8 @@ static const char *supported_methods[] = { HOSTKEYS, AES BLOWFISH DES, AES BLOWFISH DES, - "hmac-sha1", - "hmac-sha1", + "hmac-sha1,hmac-sha2-256,hmac-sha2-512", + "hmac-sha1,hmac-sha2-256,hmac-sha2-512", ZLIB, ZLIB, "", |