mirror of https://github.com/wolfSSL/wolfssh.git
- wolfSSH_shutdown() sets ret to WS_WANT_WRITE whenever the wolfSSH_worker() call it makes ends with output pending. The sendErr local and the arm that returned wolfSSH_get_error() are gone. - tests/unit.c gains EofDisconnectCb(), which sends a disconnect from the channel EOF dispatch, and two tests driving it: test_ShutdownOwedWriteAfterEofDisconnect() asserts wolfSSH_shutdown() returns WS_WANT_WRITE with output pending and WS_SUCCESS with the buffer drained on the retry; test_ShutdownHardEofDisconnectSurfacesOnRetry() refuses the disconnect's send outright and asserts the retry returns WS_SOCKET_ERROR_E. |
||
|---|---|---|
| .. | ||
| api.c | ||
| api.h | ||
| auth.c | ||
| auth.h | ||
| include.am | ||
| kex.c | ||
| kex.h | ||
| regress.c | ||
| sftp.c | ||
| sftp.h | ||
| testsuite.c | ||
| testsuite.h | ||
| unit.c | ||
| unit.h | ||