wolfssh/tests
Yosuke Shimizu 586b697b18 ssh, internal: always flush the worker's output
- wolfSSH_worker() calls wolfSSH_SendPacket() whenever
  ssh->outputBuffer holds bytes and the session is not
  disconnected. ssh->error keeps the receive's code when the
  receive failed, and the close's when a WS_CHANNEL_CLOSED pass
  hard-failed its flush; WS_REKEYING is withheld on a failed
  flush. Drops the second DoReceive(), the WOLFSSH_TEST_BLOCK
  fork and the separate WS_CHANNEL_CLOSED flush.
- BundlePacket() resets ssh->outputBuffer.length to
  ssh->packetStartIdx when the framing fails. wolfSSH_shutdown()
  reports WS_WANT_WRITE when its close-read leaves output queued,
  and the send's own error in place of it when that send failed.
  SendPacketFlush() records its code in ssh->error on every
  transport failure path, and wolfSSH_TriggerKeyExchange() writes
  it only when SendKexInit() fails.
- portfwd, client and scpclient accept WS_WANT_WRITE from
  wolfSSH_shutdown(); in scpclient the close-message drain runs
  on it.
- wolfssh/ssh.h drops WS_WINDOW_FULL from wolfSSH_worker() and says
  to read the return and wolfSSH_get_error() as independent channels
  on every pass.
- Twenty unit tests and the extended TestWorkerReportsDisconnect
  cover what ret and ssh->error hold after a receive, send, buffer,
  callback or framing failure.
2026-09-14 10:40:48 -07:00
..
api.c tests: pin the get_fd invalid-socket sentinel 2026-09-10 18:03:59 -07:00
api.h
auth.c examples, tests: terminate the ES_ERROR messages with a newline 2026-08-28 18:22:34 -05:00
auth.h
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
regress.c ssh, internal: always flush the worker's output 2026-09-14 10:40:48 -07:00
sftp.c fix for flags handling, ocsp case, macro guards, unused variable, changed default from MY to required to be set 2026-09-05 01:32:02 -07:00
sftp.h
testsuite.c scp: fix duplicate file header on send 2026-08-04 12:20:49 -04:00
testsuite.h
unit.c ssh, internal: always flush the worker's output 2026-09-14 10:40:48 -07:00
unit.h