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