diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2015-09-14 18:53:25 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-09-15 15:09:21 +0200 |
commit | 1b18a06f8c8e691d8af40c4b5a218c82546bd21e (patch) | |
tree | 6d4c42e026bc761b0aee00ca3de60f3e6dfccdd2 | |
parent | 91b513798eaf1c0273e3d955e7e47e58056c383d (diff) | |
download | libssh-1b18a06f8c8e691d8af40c4b5a218c82546bd21e.tar.gz libssh-1b18a06f8c8e691d8af40c4b5a218c82546bd21e.tar.xz libssh-1b18a06f8c8e691d8af40c4b5a218c82546bd21e.zip |
kex: Prefer sha2 over sha1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit b0f22fde62c6db09493299830c650cbeee28cb0c)
-rw-r--r-- | src/kex.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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, "", "", |