https://gitlab.synchro.net/main/sbbs/-/commit/2dbeb744732b44a5d46446e9
Modified Files:
src/ssh/ssh-conn.c src/ssh/test/dssh_test_internal.h test_conn.c test_transport.c
Log Message:
Add remaining unit tests for formerly-guarded paths
Complete test coverage for all removed #ifndef DSSH_TESTING guards:
- guard/ed25519_haskey_wrong_type: RSA key in ed25519 ctx → false
- guard/rsa_haskey_wrong_type: ed25519 key in RSA ctx → false
- guard/remote_languages_cleanup: populate and free remote_languages
- test_send_ext_data_toolong: send_extended_data with len > window
and len > max_packet (DSSH_TESTABLE)
- test_demux_chan_type_zero: demux_dispatch on channel with
chan_type==0 returns early (DSSH_TESTABLE)
Expose dssh_conn_send_data, dssh_conn_send_extended_data, and
demux_dispatch as DSSH_TESTABLE for direct testing.
Expose serialize_bn_mpint as DSSH_TESTABLE (previous commit).
Co-Authored-By: Claude Opus 4.6 (1M context) <
noreply@anthropic.com>
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net