aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2015-09-14 18:53:25 +0200
committerAndreas Schneider <asn@cryptomilk.org>2015-09-15 15:09:03 +0200
commitb0f22fde62c6db09493299830c650cbeee28cb0c (patch)
tree446b60a4072397ba89b3edb460456371d8eed50f
parent11f43df873e5d684b8ed9244b6a00c0ece2f8d5e (diff)
downloadlibssh-b0f22fde62c6db09493299830c650cbeee28cb0c.tar.gz
libssh-b0f22fde62c6db09493299830c650cbeee28cb0c.tar.xz
libssh-b0f22fde62c6db09493299830c650cbeee28cb0c.zip
kex: Prefer sha2 over sha1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--src/kex.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/kex.c b/src/kex.c
index 2e963bbb..09659022 100644
--- a/src/kex.c
+++ b/src/kex.c
@@ -94,8 +94,8 @@ static const char *default_methods[] = {
HOSTKEYS,
AES BLOWFISH DES,
AES BLOWFISH DES,
- "hmac-sha1,hmac-sha2-256,hmac-sha2-512",
- "hmac-sha1,hmac-sha2-256,hmac-sha2-512",
+ "hmac-sha2-256,hmac-sha2-512,hmac-sha1",
+ "hmac-sha2-256,hmac-sha2-512,hmac-sha1",
"none",
"none",
"",
@@ -109,9 +109,8 @@ static const char *supported_methods[] = {
HOSTKEYS,
AES BLOWFISH DES_SUPPORTED,
AES BLOWFISH DES_SUPPORTED,
- "hmac-sha1,hmac-sha2-256,hmac-sha2-512",
- "hmac-sha1,hmac-sha2-256,hmac-sha2-512",
- ZLIB,
+ "hmac-sha2-256,hmac-sha2-512,hmac-sha1",
+ "hmac-sha2-256,hmac-sha2-512,hmac-sha1",
ZLIB,
"",
"",