BBS:      TELESC.NET.BR
Assunto:  src/ssh/test/test_auth.c
De:       Deuc¨
Data:     Tue, 24 Mar 2026 20:58:43 -0700
-----------------------------------------------------------
https://gitlab.synchro.net/main/sbbs/-/commit/8b18695f8e548d3476877ad5
Modified Files:
	src/ssh/test/test_auth.c
Log Message:
ssh-auth.c coverage: server send-failure tests (12 new tests)

Use pipe-close technique: after client sends the auth request, close
the s2c pipe so the server's response send_packet fails. Each test
covers a specific send path in auth_server_impl:

- SERVICE_ACCEPT send failure
- none auth: success/failure send
- password auth: success/failure/no-callback/changereq send
- publickey: no-callback/probe-ok/probe-rejected/unknown-algo send
- unknown method: failure send

ssh-auth.c missed branches: 93  71 (71.8%  77.9%).

Co-Authored-By: Claude Opus 4.6 (1M context) 
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

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