Mercurial > dropbear
comparison svr-runopts.c @ 1678:4b4cfc92c5b7
Make server send SSH_MSG_EXT_INFO
Ensure that only valid hostkey algorithms are sent in the first kex guess
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 21 May 2020 23:00:22 +0800 |
parents | d32bcb5c557d |
children | 435cfb9ec96e |
comparison
equal
deleted
inserted
replaced
1677:e05c0e394f1d | 1678:4b4cfc92c5b7 |
---|---|
483 } | 483 } |
484 | 484 |
485 static void disablekey(int type) { | 485 static void disablekey(int type) { |
486 int i; | 486 int i; |
487 TRACE(("Disabling key type %d", type)) | 487 TRACE(("Disabling key type %d", type)) |
488 for (i = 0; sshhostkey[i].name != NULL; i++) { | 488 for (i = 0; sigalgs[i].name != NULL; i++) { |
489 if (sshhostkey[i].val == type) { | 489 if (sigalgs[i].val == type) { |
490 sshhostkey[i].usable = 0; | 490 sigalgs[i].usable = 0; |
491 break; | 491 break; |
492 } | 492 } |
493 } | 493 } |
494 } | 494 } |
495 | 495 |