wolfssh/src
John Safranek 4477f4744a ssh: add generic request callbacks
wolfSSH_CTX_SetChannelReqAnyCb() and wolfSSH_CTX_SetGlobalReqAnyCb()
register a callback consulted first for a channel or global request,
with the name, the type-specific part, and whether a reply is wanted. A
tri-state answer grants, refuses, or leaves it to the handling already
there, so a policy reaches the types with no hook of their own.

- the name is the one that arrived, since a copy into a buffer truncates
  a long name and ends it at an embedded NUL, and a policy has to answer
  on what the peer sent
- a grant still parses and records what the library needs, so a granted
  session request commits the session, the typed callbacks are not
  consulted, and a granted unknown type is answered CHANNEL_SUCCESS
- a port-0 tcpip-forward skips the callback, since only the forward
  callback can report the port bound and a policy that had bound a
  listener would then have to be refused, per RFC 4254 7.1
- a client refuses tcpip-forward and cancel-tcpip-forward ahead of any
  policy, matched on the name that arrived so it holds in a build with
  no forwarding, where neither name is in the name table
- window-change, exit-status and exit-signal are cleared of a reply
  before the handling runs, so a refusal leaves them unanswered too, per
  RFC 4254 6.7 and 6.10
- regress.c covers the answers, the data delivered, the names that do
  not fit a copy, and which callbacks each answer leaves out
2026-09-15 15:27:16 -07:00
..
agent.c agent: commit the open on a completed flush 2026-09-08 11:50:40 -05:00
certman.c 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
include.am Add OpenSSH certificate user authentication 2026-07-27 23:30:20 -07:00
internal.c ssh: add generic request callbacks 2026-09-15 15:27:16 -07:00
io.c io: clean up Harmony send size clamp 2026-08-10 10:31:07 -06:00
keygen.c internal: Refactor and gate ML-DSA composite key handling 2026-09-02 15:35:09 -07:00
log.c
misc.c
ossh.c internal: Refactor and gate ML-DSA composite key handling 2026-09-02 15:35:09 -07:00
port.c Fix remaining MinGW build errors in the regress/unit test build 2026-09-10 15:27:50 -07:00
ssh.c ssh: add generic request callbacks 2026-09-15 15:27:16 -07:00
wolfscp.c ssh, apps, examples: take the worker's status from its return 2026-09-14 10:40:48 -07:00
wolfsftp.c ssh, sftp: match the sftp subsystem name exactly 2026-09-10 17:14:23 -07:00
wolfterm.c Fix remaining MinGW build errors in the regress/unit test build 2026-09-10 15:27:50 -07:00