wolfssh/src
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
..
agent.c agent: exchange whole messages when signing 2026-10-16 11:15:32 -05:00
certman.c certman: require keyCertSign on self-issued peer intermediates 2026-10-13 09:43:54 -07:00
include.am
…
internal.c agent: exchange whole messages when signing 2026-10-16 11:15:32 -05:00
io.c
…
keygen.c Fix ML-DSA composite logic from code review 2026-09-21 11:11:16 -07:00
log.c
…
misc.c
…
ossh.c internal, ossh: sign RSA user auth through ssh-agent 2026-10-08 11:28:25 -07:00
port.c scp: receive through a per-session dirfd 2026-10-15 17:14:34 -05:00
ssh.c internal: refuse userauth before service request 2026-10-12 10:43:48 -05:00
wolfscp.c scp: receive through a per-session dirfd 2026-10-15 17:14:34 -05:00
wolfsftp.c wolfsftp: finish a running key exchange before the SFTP INIT 2026-10-14 10:49:40 -07:00
wolfterm.c
…