Skip to content

Rework post-handshake checks for resumed connections. - #11198

Open
kareem-wolfssl wants to merge 2 commits into
wolfSSL:masterfrom
kareem-wolfssl:zd22349
Open

Rework post-handshake checks for resumed connections.#11198
kareem-wolfssl wants to merge 2 commits into
wolfSSL:masterfrom
kareem-wolfssl:zd22349

Conversation

@kareem-wolfssl

Copy link
Copy Markdown
Contributor

Description

Fixes zd#22349

Testing

Built in tests

Checklist

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

@kareem-wolfssl
kareem-wolfssl requested review from Frauschi and a balanced review from Copilot August 18, 2026 19:16
@kareem-wolfssl kareem-wolfssl self-assigned this Aug 18, 2026

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

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Reworks TLS 1.3 post-handshake authentication (PHA) validation so that resumed (ticket/PSK) connections still enforce required certificate/verify checks during post-handshake exchanges, and adds regression tests for the updated behavior.

Changes:

  • Add new TLS 1.3 PHA tests covering resumption and a “bare Finished” negative case.
  • Introduce a helper macro to identify post-handshake processing and use it to tighten/relax TLS 1.3 sanity checks appropriately.
  • Ensure client Certificate/CertificateVerify sending and server Finished validation behave correctly for post-handshake flows on resumed connections.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
tests/api/test_tls13.h Registers two new TLS 1.3 PHA+resumption test cases in the test list.
tests/api/test_tls13.c Implements two new regression tests for PHA on resumption and rejecting an invalid post-handshake Finished.
src/tls13.c Adjusts TLS 1.3 Finished/sanity logic to distinguish post-handshake exchanges from the main handshake, including PSK/resumption cases.

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

Comment thread tests/api/test_tls13.c
Comment thread tests/api/test_tls13.c
Comment thread tests/api/test_tls13.c
Comment thread tests/api/test_tls13.c
Comment thread src/tls13.c
@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown

@GSoJC234

Copy link
Copy Markdown

Confirmed—this fixes the issue. Thanks!

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.

5 participants