wolfssh/examples/client
John Safranek 48f36f753a Reject an out-of-range -p port
The -p option of wolfssh, client, wolfscp, wolfsftp and echoserver now
goes through a strtol check, so a value that is not wholly a number in
range exits with an error instead of wrapping into a different port.

- apps/wolfssh: ClientParsePort(), shared with ClientParseDestination(),
  which also rejects an empty "ssh://host:" port instead of defaulting
- examples: a ClientParsePort() in examples/client/common.c; port 0 is
  rejected in every build, not only with a main driver
- echoserver: accepts 0 to 65535, keeping 0 for the test harness
- add TestClientParsePort and an empty URI port case to regress.test

Issue: F-14763, F-14767, F-14768, F-12552
2026-10-28 13:10:29 -05:00
..
client.c Reject an out-of-range -p port 2026-10-28 13:10:29 -05:00
client.h Release v1.4.22 2025-12-29 16:53:33 -08:00
common.c Reject an out-of-range -p port 2026-10-28 13:10:29 -05:00
common.h Reject an out-of-range -p port 2026-10-28 13:10:29 -05:00
include.am refactor client apps and add X509 to scpclient 2023-04-04 14:59:46 -07:00