diff options
author | Matt Johnston <matt@ucc.asn.au> | 2018-02-18 22:47:51 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2018-02-18 22:47:51 +0800 |
commit | f2d86ae7d369feb17d022fc21ad695b5dcbb8381 (patch) | |
tree | bb41e18e07b1597e6021749c2c516a1e6804a120 | |
parent | 34ee32607598cdcaaf40dcaa99dd58c8eae672e3 (diff) |
group14-sha256 should be higher than group14-sha1
-rw-r--r-- | common-algo.c | 6 |
1 files 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 |