wolfssh/examples/sftpclient
John Safranek b05fe9f4c9 Unbuffer stdin before a client password prompt
The password prompt reads stdin with fgets(), and a buffered stdin
keeps its own copy of the line in libc for the life of the process.
The clients make stdin unbuffered before any stdin I/O, so the typed
password lands only in the buffer ClientUserAuth() wipes.

- the wolfssh app, and the example client, sftp client and scp client
  whether or not -P was given, as keyboard-interactive reads stdin too
- ClientUnbufferStdin() acts once per process and reports a failure
- scripts/sshclient.test sends the session data right after the
  password, with no sleep

Issue: F-15669
2026-11-03 16:24:06 -06:00
..
include.am refactor client apps and add X509 to scpclient 2023-04-04 14:59:46 -07:00
sftpclient.c Unbuffer stdin before a client password prompt 2026-11-03 16:24:06 -06:00
sftpclient.h Release v1.4.22 2025-12-29 16:53:33 -08:00