wolfssh/wolfssh
ouki c8e2eddb36 Fix SendPacketType to not advance state when negotiation fails
SendPacketType() set the state to SFTP_SEND_PACKET even when
wolfSSH_SFTP_negotiate() returned a retry or an error. No request
buffer was built in that case, so an empty buffer was sent and the
caller could wait for a response to a request that was never sent.

Move to SFTP_SEND_PACKET only when the request has been
built, and return the negotiation result otherwise. Keep the state
for retryable errors.

Add the wolfSSH_TestSftpSendPacketType() test hook and an API test
that fails without this change.

F-13904
2026-10-12 08:58:48 -07:00
..
agent.h agent, apps, examples: relay whole agent messages 2026-09-24 17:24:14 -05:00
certman.h expand CI test for non-fpki build, fix check for error state with CertEnumCertificatesInStore, add extended key usage type check if present, fix for EKU checks with X509 use and add test case 2026-09-05 01:32:02 -07:00
certs_test.h Add kex integration test for ed25519 server key 2026-04-16 15:14:42 +09:00
error.h Add strict key exchange, the Terrapin mitigation 2026-09-30 22:49:25 -05:00
include.am Add OpenSSH certificate user authentication 2026-07-27 23:30:20 -07:00
internal.h internal: sign without server-sig-algs 2026-10-09 17:09:56 -05:00
keygen.h Add remaining ML-DSA composite signature algorithms 2026-08-10 14:51:37 -07:00
log.h Add parameter names to function declarations 2026-06-09 17:03:02 -07:00
misc.h Use wolfCrypt's wc_ForceZero() 2026-07-17 15:17:36 -06:00
ossh.h Add OpenSSH certificate user authentication 2026-07-27 23:30:20 -07:00
port.h Build the terminal code without a filesystem 2026-09-23 20:52:18 -05:00
settings.h Let a client-only build use SCP 2026-09-23 20:52:18 -05:00
ssh.h Add strict key exchange, the Terrapin mitigation 2026-09-30 22:49:25 -05:00
test.h scp, test.h, apps, examples: wait to write and route on the return 2026-09-14 10:40:48 -07:00
version.h Prepare for release 1.6.0 2026-10-06 16:03:51 -06:00
version.h.in
…
visibility.h
…
wolfscp.h scp: match the scp command as a whole token 2026-09-15 21:55:50 -07:00
wolfsftp.h Fix SendPacketType to not advance state when negotiation fails 2026-10-12 08:58:48 -07:00