Repository navigation
Conversation
`Tls13CipherList` converts preference groups into the parallel cipher ID and flag arrays expected by BoringSSL. Context and per-connection setters apply the list while leaving cipher ID validation to BoringSSL. Debug output reconstructs preference groups instead of exposing storage.
There was a problem hiding this comment.
✅ Approved — No issues found: the new FFI calls pass arrays of equal length and are sound for empty lists, and the tests cover the new behaviour.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
🔒 Security: ✅ LGTM
No security issues found.
📖 AGENTS.md: ✅ LGTM
This pull request does not change any agent instruction files.
📋 Code Quality: ✅ LGTM
Tls13CipherList::new builds the ids and flags arrays to the same length. The Debug impl rebuilds the same groups from the flags. Both setters are sound for empty lists, cast the pointer correctly through repr(transparent), and return failures as an ErrorStack through cvt. The tests cover the Debug output, a handshake, rejection of invalid ids, and the empty list.
📝 Documentation: ✅ LGTM
The doc comments on the new APIs are accurate.
Reviewed commit: 6a0c7c6e
Tls13CipherListrepresents ordered TLS 1.3 cipher preference groups and converts them into BoringSSL’s parallel cipher ID and flag arrays.Safe context and per-connection setters expose direct TLS 1.3 cipher configuration while leaving identifier validation to BoringSSL.
SslCipherIddebug output now uses recognized cipher names and preserves unknown values as typed hexadecimal identifiers.This allows callers to omit ChaCha20 without applying a broad compliance policy, addressing #500.