BBS:      TELESC.NET.BR
Assunto:  src/ssh/CMakeLists.txt deucessh-comp.h deucessh-enc.h deucessh-kex.h d
De:       Deuc¨
Data:     Sun, 26 Apr 2026 18:06:23 -0700
-----------------------------------------------------------
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  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) 
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

-----------------------------------------------------------
[Voltar]