• src/ssh/CMakeLists.txt de

    From Deuc¿@VERT to Git commit to main/sbbs/m on Monday, March 23, 2026 20:49:00
    https://gitlab.synchro.net/main/sbbs/-/commit/86f679ba89ed37dc6434658a
    Modified Files:
    src/ssh/CMakeLists.txt deucessh.h ssh-trans.c src/ssh/test/test_transport.c
    Log Message:
    Add dssh_transport_set_version() public API

    New function to set the SSH software version and optional comment
    strings used in the version exchange (RFC 4253 s4.2). Validates:

    - software_version: non-NULL, non-empty, printable US-ASCII (0x21-0x7E);
    pass NULL to keep the library's built-in default
    - comment: printable US-ASCII (0x20-0x7E), spaces allowed; NULL to omit
    - Combined "SSH-2.0-version SP comment CR LF" must fit in 255 bytes
    - Must be called before any session is initialized

    Default version string "DeuceSSH-X.Y" now derived from PROJECT_VERSION
    via DSSH_VERSION_STRING compile definition.

    Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/m on Sunday, April 26, 2026 18:06:00
    https://gitlab.synchro.net/main/sbbs/-/commit/6ddc616c7e39e80f501e3231
    Modified Files:
    src/ssh/CMakeLists.txt deucessh-comp.h deucessh-enc.h deucessh-kex.h deucessh-key-algo.h deucessh-lang.h deucessh-mac.h src/ssh/kex/sntrup761.c
    Log Message:
    DeuceSSH: fix MSVC build (C17, static_assert, sntrup761 VLAs)

    - Bump cmake_minimum_required to 3.22 so CMP0128 is NEW and MSVC
    honors C_STANDARD 17 (emits /std:c17).
    - Add #include <assert.h> to the six module headers that use
    static_assert; MSVC's static_assert is a macro defined there.
    - Replace the three remaining VLA sites in sntrup761.c with
    fixed-size arrays sized to their constant maxima (p for
    Encode/Decode where len <= p; PUBLICKEYBYTES for Hash_prefix
    where that's the largest inlen across all callers). MSVC does
    not support VLAs in C mode.

    Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net