• src/ssh/CMakeLists.txt deucessh-comp.h deucessh-enc.h deucessh-kex.h d

    From Deuc¿@VERT to Git commit to main/sbbs/master on Sunday, April 26, 2026 18:06:23
    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