Forbird supported_versions when using TLS <1.3. Forbid sending more than one cert when using RPK. Confirm QUIC early_data_max_size matches expected value. - #11174
Conversation
There was a problem hiding this comment.
Pull request overview
This PR tightens TLS/QUIC and TLS 1.3 conformance checks in wolfSSL and adds regression tests covering those cases (F-9230, F-9231, F-9233).
Changes:
- Enforce QUIC NewSessionTicket early_data
max_early_data_sizesentinel value (0xffffffff) and add a QUIC regression test. - Reject
supported_versionsin a ServerHello when negotiating TLS < 1.3 and add a TLS 1.3 legacy_version downgrade-related regression test. - For TLS 1.3 + RPK, reject Certificate messages containing more than one CertificateEntry and add a corresponding test.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/quic.c | Adds a QUIC post-handshake ticket parsing test for early_data max size; fixes QUIC alert callback bookkeeping. |
| tests/api/test_tls13.h | Registers new TLS 1.3 API tests in the test list. |
| tests/api/test_tls13.c | Adds TLS 1.3 tests for multiple RPK cert entries and ServerHello legacy_version handling with supported_versions. |
| src/tls.c | Enforces QUIC early_data ticket size sentinel and rejects supported_versions in older-version ServerHello. |
| src/internal.c | Refactors negotiated peer cert-type lookup and rejects multi-entry Certificate lists when RPK is negotiated in TLS 1.3. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
wolfSSL-Fenrir-bot
left a comment
There was a problem hiding this comment.
Fenrir Automated Review — PR #11174
Scan targets checked: wolfcrypt-rs-bugs, wolfssl-bugs, wolfssl-src
Findings: 5
5 finding(s) posted as inline comments (see file-level comments below)
This review was generated automatically by Fenrir. Reported findings require changes before merge.
eb11281 to
0d679dc
Compare
wolfSSL-Fenrir-bot
left a comment
There was a problem hiding this comment.
Fenrir Automated Review — PR #11174
Scan targets checked: wolfcrypt-rs-bugs, wolfssl-bugs, wolfssl-src
Findings: 2
2 finding(s) posted as inline comments (see file-level comments below)
This review was generated automatically by Fenrir. Reported findings require changes before merge.
philljj
left a comment
There was a problem hiding this comment.
Please review Fenrir items.
0d679dc to
bf63312
Compare
|
Retest this please |
1 similar comment
|
Retest this please |
bf63312 to
39df047
Compare
…hen using QUIC. Fixes F-9233.
…t codes as they differ from TLS alert codes.
Refactor QUIC alert handling into its own function Add test case for TLS 1.2 client + server to exercise new supported_version logic
39df047 to
cbae46a
Compare
Description
Fixes F-9230, F-9231, F-9233
Testing
Built in tests + added tests
Checklist