wolfssh/tests
John Safranek ee7fa04bec ssh: flush any queued output at teardown
wolfSSH_shutdown() flushes whatever a short send left in the output
buffer, not just a queued disconnect. A rejected auth's
USERAUTH_FAILURE has no channel, and DoChannelClose() retires the
channel as soon as the close is bundled, so neither had anything
left to carry the retry.

- The gate still refuses a flush once the peer has disconnected,
  unless our own disconnect is the thing queued.
- A flush that finishes on a live session clears the WS_WANT_WRITE
  the short send latched, as the disconnected path already did.
- ssh.h documents the widened flush and the WS_WANT_WRITE a short
  one leaves wolfSSH_shutdown() returning.
- Tests cover the rejected auth with no channel and the close whose
  channel DoChannelClose() already retired.
- A flush that short-sends on a live channel leaves the teardown
  queued behind it. The retry adds no second EOF or close, and skips
  the close wait while its own flush is still short.
- A teardown send that drained the leftovers settles the flush; one
  that failed outranks it, since a reset leaves the buffer intact.
2026-09-03 16:12:17 -05:00
..
api.c wolfsftp, port: apply the attributes SETSTAT and FSETSTAT acknowledge 2026-09-02 08:42:36 -07:00
api.h Release v1.4.22 2025-12-29 16:53:33 -08:00
auth.c examples, tests: terminate the ES_ERROR messages with a newline 2026-08-28 18:22:34 -05:00
auth.h added check for private and public keys decoded 2026-07-31 16:14:52 -07:00
include.am client: fix keyboard-interactive responses 2026-08-10 10:31:07 -06:00
kex.c internal: Refactor and gate ML-DSA composite key handling 2026-09-02 15:35:09 -07:00
kex.h Release v1.4.22 2025-12-29 16:53:33 -08:00
regress.c ssh: flush any queued output at teardown 2026-09-03 16:12:17 -05:00
sftp.c wolfsftp, port: apply the attributes SETSTAT and FSETSTAT acknowledge 2026-09-02 08:42:36 -07:00
sftp.h Release v1.4.22 2025-12-29 16:53:33 -08:00
testsuite.c scp: fix duplicate file header on send 2026-08-04 12:20:49 -04:00
testsuite.h Release v1.4.22 2025-12-29 16:53:33 -08:00
unit.c Validate a custom SSH proto ID string 2026-09-02 15:36:18 -07:00
unit.h Release v1.4.22 2025-12-29 16:53:33 -08:00