The Windows app now builds for Haiku over the new Haiku backend of
clang-retro MFC (clang-retro/mfc#176), cross-built on Linux with D-Modem's
Haiku toolchain file and sysroot script.
- cmake/haiku.cmake: the toolchain file. It includes D-Modem's and
keeps the CMAKE_FIND_ROOT_PATH of the command line, so that libssh
finds the bundled mbedTLS.
- winport/CMakeLists.txt: the Haiku target and its libraries (libbe,
libdevice, libnetwork, libbsd).
- ssh/: libssh links libnetwork and libbsd on Haiku, has getaddrinfo,
and skips the termios values that Haiku does not have.
- Look for a modem (windows/src/ports.cpp, ports_haiku.cpp): lists
/dev/ports, names the usbN ports from the USB Kit, finds the CDC-ACM
modems, and tells that Haiku has no driver for the MultiTech
MT9234MU.
- CI: the winport-haiku job builds the app and uploads
dmodem-win32-haiku-x86_64.tar.gz; the nightly release takes it.
- docs/haiku.md, and short notes in the README, building.md and
download.md.
Tested on Haiku R1/beta6 in QEMU: the menus, the pages, the dialogs,
modal dialogs, the keyboard, moving the window, and Look for a modem
with the computer's serial port.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTJUdomcnCN8okhJSr
Signed-off-by: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com>
Remove the SwiftUI app for macOS (macos/, cmake/MacosEmbed.cmake,
cmake/macos-embed/) and the GTK 4 app for Linux (linux/). The Win32
app (windows/) is now the canonical GUI on Windows, and on Linux and
macOS over the portable Win32 layer of clang-retro MFC (winport/).
- CMake: remove DMODEM_GUI_LINUX and the Xcode support. With no
DMODEM_GUI_WINPORT, Linux and macOS build only the libraries and
their tests. The built-in modem is on by default for Windows and
winport.
- winport: install the app, its desktop entry, AppStream data, icon
and the MT9234MU firmware on Linux (firmware/ moves to the top).
- CI: the "core" job keeps the library, sanitizer and sshd tests on
Linux. The macOS library tests move to the winport-macos job. The
linux and macos jobs and their nightly files are removed.
- Docs, site and comments: describe one Win32 app.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUx6MjNXmAFKULZu3U
Signed-off-by: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com>
- windows/: the target is now dmodem-app (output dmodem.exe), because
D-Modem has a target dmodem. The app links dmodem_embed when it exists.
- The app starts the built-in modem for the dmodemd line when builtin=1
(default). The DTE socket goes to WSAAsyncSelect as a TCP socket does.
- CMakeLists.txt: get _WIN32_WINNT from the clang-retro config and include
dmodem_retro.h for C++ files only.
- ssh: build gai_strerror.c for the win98 and winme configs, because
the gai_strerrorA of ws2_32 imports FormatMessageW.
- CI: a new windows-98 job; the win7 job gets the submodule. The nightly
release takes dmodem-win98.exe.
- Docs: Windows in docs/embedded-modem.md, README.md, docs/building.md
and docs/design.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTRNP9YEnRxydbrw9G
The win32-picolibc build (Windows 95, 98, ME, NT 4.0 and later) now has
libssh and mbedTLS, as the other builds do. DMODEM_GUI_SSH is ON for
every build.
- mbedTLS: CryptGenRandom of CryptoAPI, found at run time, in place of
BCryptGenRandom (Vista) before Vista; picolibc's gmtime_r and the
Windows zeroize in place of gmtime_s and memset_s.
- libssh: SHGetSpecialFolderPathA (IE4 shell), if_nametoindex (Vista) and
WSAStringToAddressA (Winsock 2) found at run time before Vista, with
USERPROFILE and inet_addr in their place; picolibc build flags and a
<direct.h>.
- gai_strerrorA with FormatMessageA (mingw-w64's calls FormatMessageW).
- agent.c: strcasecmp for _stricmp on picolibc.
The app still imports only DLLs that every Windows 95 has; the 9x and
NT 4.0 import checks pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRhKGCaYUyYtH7Boap
One engine in C on libssh 0.11 (with mbedTLS, both built from their
release tarballs where the system has no libssh 0.11): host keys for
the caller to trust (and OpenSSH's known_hosts when asked), logins by
password, keyboard-interactive, a key, the agent or OpenSSH's defaults,
a shell on a pty, commands, direct channels, remote listens and the
server's agent channels; keys made, read and re-encrypted. Its tests
log in to a real sshd when DMODEM_SSH_TEST names one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSV65geuGd6zMt2V6r