BBS:      TELESC.NET.BR
Assunto:  src/ssh/test/test_auth.c
De:       Deuc¨
Data:     Wed, 25 Mar 2026 00:49:07 -0700
-----------------------------------------------------------
https://gitlab.synchro.net/main/sbbs/-/commit/ebbad235a958da5195d88084
Modified Files:
	src/ssh/test/test_auth.c
Log Message:
ssh-auth.c coverage: server send-fail + edge cases (13 new tests)

Server send-failure tests for password-change and publickey-with-sig:
- Password change: success/changereq/failure send failures
- Publickey with bad signature: verify-fail send failure
- Publickey accepted: success send failure
- Publickey rejected after valid sig: failure send failure

Defensive/edge-case tests:
- Tiny/short SERVICE_REQUEST (payload <= 5 bytes)
- PASSWD_CHANGEREQ with no language field / truncated lang data
- KBI with empty response (response_lens[i] == 0)

ssh-auth.c missed branches: 55  30 (83.3%  90.6%).

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

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