Skip to content

Fix extension handling for quic_transport_parameters and trusted_ca_keys - #11304

Open
gasbytes wants to merge 1 commit into
wolfSSL:masterfrom
gasbytes:tls-alert-fixes
Open

Fix extension handling for quic_transport_parameters and trusted_ca_keys#11304
gasbytes wants to merge 1 commit into
wolfSSL:masterfrom
gasbytes:tls-alert-fixes

Conversation

@gasbytes

@gasbytes gasbytes commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Description

Two RFC-conformance fixes in TLSX_Parse: quic_transport_parameters on a non-QUIC connection now aborts with a fatal unsupported_extension alert instead of illegal_parameter (RFC 9001 Sec. 8.2), and trusted_ca_keys received in any TLS 1.3 message other than ClientHello is now rejected instead of silently ignored (RFC 9846 Sec. 4.3.4).

Testing

Added associated regression tests (test_TLSX_TCA_tls13_msg_type_validation and test_TLSX_QUIC_TP_non_quic).

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@gasbytes gasbytes self-assigned this Aug 27, 2026
Copilot AI lite review requested due to automatic review settings August 27, 2026 16:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates TLSX_Parse() in the TLS stack to enforce RFC-required handling for two specific extensions, aligning fatal alerts and message-type validity checks with current specifications.

Changes:

  • Rejects trusted_ca_keys in TLS 1.3 when received in any handshake message other than ClientHello (previously silently ignored).
  • For quic_transport_parameters received on a non-QUIC connection, sends a fatal unsupported_extension alert and returns UNSUPPORTED_EXTENSION (instead of mapping to illegal_parameter).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/tls.c
Comment thread src/tls.c
@wolfSSL-Bot

Copy link
Copy Markdown

Can one of the admins verify this patch?

…non-quic connections

rfc 9001 section 8.2
- tls: reject trusted_ca_keys outside ClientHello in TLS 1.3
RFC 9846 Sec 4.3.4
@gasbytes
gasbytes marked this pull request as ready for review August 28, 2026 11:55
@github-actions

Copy link
Copy Markdown

retest this please

@gasbytes

Copy link
Copy Markdown
Contributor Author

Jenkins retest this please

@gasbytes gasbytes assigned wolfSSL-Bot and unassigned gasbytes Aug 28, 2026
@philljj
philljj self-requested a review August 30, 2026 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants