aboutsummaryrefslogtreecommitdiff
path: root/src/kex.c
diff options
context:
space:
mode:
authorDirkjan Bussink <d.bussink@gmail.com>2014-04-20 10:07:40 +0000
committerAndreas Schneider <asn@cryptomilk.org>2014-04-22 10:57:00 +0200
commit262c82ac0661bb0be46477006ed366e401c1620f (patch)
treef93607b1740c37592ee1f779ebf7cabb8ae9f373 /src/kex.c
parent164b8e99cce70c83d2ef3e2c2b832a514a0ac908 (diff)
downloadlibssh-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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kex.c b/src/kex.c
index e90cb556..88018b06 100644
--- a/src/kex.c
+++ b/src/kex.c
@@ -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,
"",