summaryrefslogtreecommitdiffhomepage
path: root/svr-session.c
diff options
context:
space:
mode:
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
+ }
}