wolfssh/tests
John Safranek fac8b97ef5 agent: exchange whole messages when signing
wolfSSH_AGENT_SignRequest() writes the sign request and reads the reply
through the whole-message helpers the relay uses, so a short write is
followed up and a reply is read to its declared length before it is
parsed. The setup callback's WS_AgentCbError result becomes
WS_AGENT_CXN_FAIL, and an ECDSA key's reply room fits the SSH blob.

- A short write, a hang-up, or a failed setup is WS_AGENT_CXN_FAIL;
  cleanup runs only after a setup that succeeded, and the client
  callbacks close their socket when connect() fails.
- PrepareUserAuthRequestEcc() reserves r and s as mpints a pad byte over
  the curve size, and BuildUserAuthRequestEcc() hands the agent that
  room, checks the reply's algorithm name, and bounds it by outputSz.
- A NULL sig, or a NULL digest or key blob with a size, is
  WS_BAD_ARGUMENT; agent.h documents the contract and return codes.
- api: the mock agent's short write is followed up, a reply read a byte
  at a time is reassembled, and a failed setup and NULL buffers are
  refused.
- regress: the mock agents answer as a stream; ECDSA user auth for each
  curve at, under, and over the largest blob, and a wrong curve name
  refused; a failed setup refused with nothing sent.

Issue: F-13325, F-14629, F-14631
2026-10-16 11:15:32 -05:00
..
api.c agent: exchange whole messages when signing 2026-10-16 11:15:32 -05:00
api.h Release v1.4.22 2025-12-29 16:53:33 -08:00
auth.c tests: sign ECC bad-sig auth with a fresh key 2026-10-06 10:21:21 -05:00
auth.h added check for private and public keys decoded 2026-07-31 16:14:52 -07:00
include.am tests: gate the client cases in regress.c 2026-09-22 17:05:22 -05:00
kex.c Fix ML-DSA composite logic from code review 2026-09-21 11:11:16 -07:00
kex.h Release v1.4.22 2025-12-29 16:53:33 -08:00
regress.c agent: exchange whole messages when signing 2026-10-16 11:15:32 -05:00
sftp.c tests: split the SFTP server and client argv 2026-09-22 14:35:24 -05:00
sftp.h Release v1.4.22 2025-12-29 16:53:33 -08:00
testsuite.c ssh: add a rekey-state accessor 2026-09-24 22:56:41 -07:00
testsuite.h Release v1.4.22 2025-12-29 16:53:33 -08:00
unit.c scp: receive through a per-session dirfd 2026-10-15 17:14:34 -05:00
unit.h Release v1.4.22 2025-12-29 16:53:33 -08:00