Commit 226e6ca
committed
internal: send a disconnect when key exchange fails
- Send SSH_MSG_DISCONNECT with KEY_EXCHANGE_FAILED from DoKexDhInit(),
DoKexDhReply() and DoKexDhGexGroup() when the key exchange fails.
- Add KEXDH_REPLY f-truncation and KEXDH_INIT e-truncation and e-empty
mutator modes to the regression harness.
- Record outbound disconnects on the duplex endpoints and assert the
reason code in the truncated-key and host-key rejection tests.
- Scan only plaintext records for the disconnect, validate minimum
packet framing, and bound the reason code against the payload.
- Assert no disconnect is seen on a successful handshake.
Issue: F-88381 parent 326d181 commit 226e6ca
2 files changed
Lines changed: 275 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5708 | 5708 | | |
5709 | 5709 | | |
5710 | 5710 | | |
| 5711 | + | |
| 5712 | + | |
| 5713 | + | |
| 5714 | + | |
| 5715 | + | |
| 5716 | + | |
5711 | 5717 | | |
5712 | 5718 | | |
5713 | 5719 | | |
| |||
7391 | 7397 | | |
7392 | 7398 | | |
7393 | 7399 | | |
| 7400 | + | |
| 7401 | + | |
| 7402 | + | |
| 7403 | + | |
| 7404 | + | |
7394 | 7405 | | |
7395 | 7406 | | |
7396 | 7407 | | |
| |||
7791 | 7802 | | |
7792 | 7803 | | |
7793 | 7804 | | |
| 7805 | + | |
| 7806 | + | |
| 7807 | + | |
| 7808 | + | |
| 7809 | + | |
| 7810 | + | |
7794 | 7811 | | |
7795 | 7812 | | |
7796 | 7813 | | |
| |||
0 commit comments