From f2d86ae7d369feb17d022fc21ad695b5dcbb8381 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Sun, 18 Feb 2018 22:47:51 +0800 Subject: [PATCH] group14-sha256 should be higher than group14-sha1 --- common-algo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common-algo.c b/common-algo.c index e61fcaa..5bfe831 100644 --- a/common-algo.c +++ b/common-algo.c @@ -289,12 +289,12 @@ algo_type sshkex[] = { {"ecdh-sha2-nistp256", 0, &kex_ecdh_nistp256, 1, NULL}, #endif #endif -#if DROPBEAR_DH_GROUP14_SHA1 - {"diffie-hellman-group14-sha1", 0, &kex_dh_group14_sha1, 1, NULL}, -#endif #if DROPBEAR_DH_GROUP14_SHA256 {"diffie-hellman-group14-sha256", 0, &kex_dh_group14_sha256, 1, NULL}, #endif +#if DROPBEAR_DH_GROUP14_SHA1 + {"diffie-hellman-group14-sha1", 0, &kex_dh_group14_sha1, 1, NULL}, +#endif #if DROPBEAR_DH_GROUP1 {"diffie-hellman-group1-sha1", 0, &kex_dh_group1, 1, NULL}, #endif