summaryrefslogtreecommitdiffhomepage
path: root/svr-session.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2020-05-26 00:24:02 +0800
committerMatt Johnston <matt@ucc.asn.au>2020-05-26 00:24:02 +0800
commitd277f140ba37472640c63cae4ce2dafa4799ddfc (patch)
tree54c3b1ee46efbc8fe11222ce2853a64688a269c6 /svr-session.c
parent61267f85035c0c77059992f50ef20f62e192ba04 (diff)
parentc917807b1c89b93b317d56ce2905b5d6d6468a11 (diff)
merge rsa-sha256
Diffstat (limited to 'svr-session.c')
-rw-r--r--svr-session.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/svr-session.c b/svr-session.c
index 0b9eac7..6c3147f 100644
--- a/svr-session.c
+++ b/svr-session.c
@@ -330,13 +330,18 @@ static void svr_remoteclosed() {
}
static void svr_algos_initialise(void) {
-#if DROPBEAR_DH_GROUP1 && DROPBEAR_DH_GROUP1_CLIENTONLY
algo_type *algo;
for (algo = sshkex; algo->name; algo++) {
+#if DROPBEAR_DH_GROUP1 && DROPBEAR_DH_GROUP1_CLIENTONLY
if (strcmp(algo->name, "diffie-hellman-group1-sha1") == 0) {
algo->usable = 0;
}
- }
#endif
+#if DROPBEAR_EXT_INFO
+ if (strcmp(algo->name, SSH_EXT_INFO_C) == 0) {
+ algo->usable = 0;
+ }
+#endif
+ }
}