wolfssh/apps
Hideki Miyazaki 4df003061a apps/wolfssh: Write known_hosts entries in binary mode
CI's mingw-regress job showed AppendKeyToFile writing a known_hosts
entry, then TestAppendKeyToFile reading it back and finding a byte
mismatch on Windows. The file was opened with WFOPEN(..., "a"), a
text mode append. On Windows the C runtime rewrites '\n' to CRLF on
write in text mode, so the entry landed on disk with a trailing
"\r\n" instead of the "\n" the test wrote and expected back.

Open the file in binary mode instead, matching the WriteTextFile test
helper a few hundred lines above in tests/regress.c, which already
uses "wb" for the same reason. known_hosts is conventionally
LF-terminated regardless of platform, so this also matches the format
other SSH clients expect from the file, not just the test.
2026-09-10 15:27:50 -07:00
..
wolfssh apps/wolfssh: Write known_hosts entries in binary mode 2026-09-10 15:27:50 -07:00
wolfsshd wolfsshd: Cover -D option parsing on Windows in CI 2026-09-10 15:27:50 -07:00
include.am Add wolfssh-options build option probe 2026-08-19 16:55:00 -07:00
wolfssh-options.c internal: Refactor and gate ML-DSA composite key handling 2026-09-02 15:35:09 -07:00