Commit Graph
14 Commits
Author SHA1 Message Date
Neo-DesktopandClaude Opus 5.5 d924bf8860 Make the Win32 app the only desktop GUI
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>
2026-11-28 12:48:14 +00:00
Claude 526dd567f8 Windows: build the modem into the app (Windows 98 SE and Windows 7)
- 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
2026-11-23 15:28:49 +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 e4190ee1c3 gai_strerror.c: compile to nothing on systems other than Windows
The macOS Xcode project compiles each file of ssh/src, and this one
included <winsock2.h>.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRhKGCaYUyYtH7Boap
2026-11-20 10:54:11 +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 86d41bfcc0 SSH engine: agent.c's functions documented 2026-11-12 15:48:28 +00:00
Claude 089d9e3555 SSH: PuTTY's .ppk keys, Pageant and OpenSSH's agent on Windows, an agent's socket chosen; the Linux app's login menu and PuTTY key import 2026-11-12 15:40:10 +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 f224e445aa SSH: a command can forward the agent; a write tells what's still kept
dmc_ssh_exec() takes ssh -A as the shell does, and dmc_ssh_write()
gives back how many bytes wait for the server's window, so a forward
can hold back a fast sender.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSV65geuGd6zMt2V6r
2026-11-12 13:20:14 +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