Commit Graph
10 Commits
Author SHA1 Message Date
Neo-DesktopandClaude Opus 5.5 35d66c85e9 Build the app for Haiku (x86_64)
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>
2026-11-28 20:11:33 +00:00
Claude b0fa5fcf7f wip: toolchain for Mac OS X 10.4 2026-11-28 12:56:16 +00:00
Claude c6dba26742 Linux app: the modem built in (libdmodem_embed), no dmodemd needed
D-Modem is now a git submodule (external/D-Modem). With
DMODEM_GUI_EMBED (on when the submodule is there, on Linux), the app
runs the modem in a thread for the SIP, USB and ALSA lines. Its DTE is
a socket, so there is no pty, no /dev/ttyDM0 and no root. The modem's
log goes to the Log page. Line settings > Advanced > Built-in modem
(on by default) turns it off, and the app starts dmodemd as before.

libssh's sha1() and sha256() are renamed, because libre has functions
of the same names. The bundled Mbed TLS is now 3.6.7, the same release
as D-Modem's.

Docs: docs/embedded-modem.md (STE), with links from the README,
building.md and design.md. CI: the Linux job checks out the submodule
and installs libasound2-dev and libusb-1.0-0-dev.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTRNP9YEnRxydbrw9G
2026-11-23 15:16:24 +00:00
Claude 6916b16111 Keep if_nametoindex in libssh's ssh_is_ipaddr for Linux and macOS
The patch renamed both calls in misc.c; the second ssh_is_ipaddr is the
one for systems other than Windows, where dmodem_if_nametoindex was not
defined.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRhKGCaYUyYtH7Boap
2026-11-20 10:47:47 +00:00
Claude 579fc9a706 Add SSH to the Windows 95 build
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
2026-11-20 10:44:54 +00:00
Claude 47a11a3f1d Build the Windows app with clang-retro
Replace Open Watcom (windows/build-watcom.sh) and MSVC in CI with
clang-retro: cmake/clang-retro.cmake, a CMake toolchain file that takes
the clang-dos toolchain package (CLANG_DOS) and a --config target
(CLANG_RETRO_CONFIG).

- Windows 95 and later: win32-picolibc (static C library, no msvcrt.dll),
  no SSH. CI checks its imports for 9x and NT 4.0.
- Windows 7 and later: win7, with libssh and mbedTLS built for it.
- CI runs the tests of both builds in Wine.
- picolibc names for _snprintf, _stricmp and _strnicmp; a main for
  picolibc's start-up code; DMODEM_GUI_SSH to turn the SSH build off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRhKGCaYUyYtH7Boap
2026-11-19 11:42:05 +00:00
Claude ba4b83ab83 SSH: forwarded agent channels and remote listens on port 0 work
libssh runs a client's callbacks for the channels the server opens
(the forwarded agent's) only when it's built WITH_SERVER, so it now is.
Its remote listen on port 0 read the port the server picked from the
last packet in, often another one, and failed a listen the server had
taken: PatchLibssh.cmake keeps the port from the reply itself. Each of
the engine's functions has its comment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSV65geuGd6zMt2V6r
2026-11-12 13:41:27 +00:00
Claude 4471cd3274 SSH: build the bundled libssh for Android and cross toolchains too
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSV65geuGd6zMt2V6r
2026-11-12 13:18:03 +00:00
Claude fe56f25743 Windows and macOS: SSH by libdmodemssh, built in
The Windows app runs libdmodemssh on a thread that posts its events to
the main window, with a login dialog that fits its questions; the
Windows 95 build keeps Windows' ssh.exe in a pseudo console.  The macOS
app's SSHConnection polls it on a thread for the main queue, with
SwiftUI alerts for a new host, a password or the server's questions;
PtySpawn goes.  libssh and mbedTLS are built universal for macOS by the
repository's CMake.  Linux CI logs in to a real sshd; docs follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSV65geuGd6zMt2V6r
2026-11-12 13:09:00 +00:00
Claude a771d03af4 Add libdmodemssh: an SSH client on libssh for every app
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
2026-11-12 12:58:43 +00:00