comparison svr-session.c @ 1683:41bf8f216644

merge rsa-sha256
author Matt Johnston <matt@ucc.asn.au>
date Tue, 26 May 2020 00:24:02 +0800
parents 435cfb9ec96e
children a6da10ac64b5
comparison
equal deleted inserted replaced
1673:e0871128e61f 1683:41bf8f216644
328 dropbear_close("Exited normally"); 328 dropbear_close("Exited normally");
329 329
330 } 330 }
331 331
332 static void svr_algos_initialise(void) { 332 static void svr_algos_initialise(void) {
333 #if DROPBEAR_DH_GROUP1 && DROPBEAR_DH_GROUP1_CLIENTONLY
334 algo_type *algo; 333 algo_type *algo;
335 for (algo = sshkex; algo->name; algo++) { 334 for (algo = sshkex; algo->name; algo++) {
335 #if DROPBEAR_DH_GROUP1 && DROPBEAR_DH_GROUP1_CLIENTONLY
336 if (strcmp(algo->name, "diffie-hellman-group1-sha1") == 0) { 336 if (strcmp(algo->name, "diffie-hellman-group1-sha1") == 0) {
337 algo->usable = 0; 337 algo->usable = 0;
338 } 338 }
339 } 339 #endif
340 #endif 340 #if DROPBEAR_EXT_INFO
341 } 341 if (strcmp(algo->name, SSH_EXT_INFO_C) == 0) {
342 342 algo->usable = 0;
343 }
344 #endif
345 }
346 }
347