https://gitlab.synchro.net/main/sbbs/-/commit/4d27ca8b6489c631c6fc2070
Modified Files:
src/ssh/TODO.md ssh-conn.c src/ssh/test/dssh_test_internal.h test_conn.c
Log Message:
Close items 26, 30: decompose demux_dispatch/accept_channel, eliminate SER macros
demux_dispatch() (~240 lines) split into 4 helpers:
handle_channel_data, handle_channel_extended_data,
handle_channel_request, and dssh_test_parse_channel_request
(DSSH_TESTABLE shared parser). Switch body reduced to ~15 lines.
dssh_session_accept_channel() (~230 lines) split into
accept_channel_init and accept_setup_loop, both using
the shared CHANNEL_REQUEST parser. Main function reduced
to ~50 lines.
PTY_SER/SIG_SER local macros replaced with direct DSSH_PUT_U32
calls (11 sites). 6 new parser unit tests.
Co-Authored-By: Claude Opus 4.6 (1M context) <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net