• src/ssh/kex/dh-gex-sha256.c src/ssh/test/dssh_test_internal.h test_tra

    From Deucе@VERT to Git commit to main/sbbs/master on Tue Mar 24 20:58:43 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/c0bcf664ecd60723b2ff6b48
    Modified Files:
    src/ssh/kex/dh-gex-sha256.c src/ssh/test/dssh_test_internal.h test_transport.c
    Log Message:
    Add unit tests for formerly-guarded paths

    Tests for code paths that were previously hidden behind
    #ifndef DSSH_TESTING guards:

    - guard/rekey_time_zero: rekey_needed returns false when rekey_time==0
    - guard/blocksize_lt8: enc module with blocksize=1 (clamped to 8)
    - guard/ed25519_sign_small_buf: sign with 4-byte buffer → TOOLONG
    - guard/ed25519_pubkey_small_buf: pubkey with 4-byte buffer → TOOLONG
    - guard/rsa_sign_small_buf: sign with 4-byte buffer → TOOLONG
    - guard/rsa_pubkey_small_buf: pubkey with 4-byte buffer → TOOLONG
    - guard/bn_mpint_small_buf: serialize_bn_mpint with 4-byte buffer → TOOLONG

    Expose serialize_bn_mpint as DSSH_TESTABLE for direct testing.

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

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