Skip to content

Correct reassembly logic in sniffer. Fix handshake message size in BuildCertificateStatus. Ensure MTU is set properly when using SCTP with DTLS. Improve SCTP examples. - #11211

Open
kareem-wolfssl wants to merge 4 commits into
wolfSSL:masterfrom
kareem-wolfssl:zd22352_3_4

Conversation

@kareem-wolfssl

Copy link
Copy Markdown
Contributor

Description

Fixes zd#22352, zd#22354, zd#22348

Testing

Built in tests, added tests

Checklist

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

Thanks to 007bsd for the report.
This was causing issues when using OCSP stapling with secure_renegotiation and renegotiating a connection.
Thanks to 007bsd for the report.
… checks and fix wolfSSL_shutdown handling in SCTP examples.

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

Fixes sniffer reassembly, OCSP handshake sizing, and DTLS-over-SCTP MTU handling while improving associated tests and examples.

Changes:

  • Corrects overlapping TCP segment reassembly.
  • Uses the actual CertificateStatus body length.
  • Adds SCTP MTU coverage and stronger SCTP examples.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/utils.h Adds SCTP stream-mode state.
tests/utils.c Preserves partial SCTP reads.
tests/api/test_ocsp.h Declares the OCSP regression test.
tests/api/test_ocsp.c Tests encrypted CertificateStatus renegotiation.
tests/api/test_dtls.h Registers SCTP MTU coverage.
tests/api/test_dtls.c Tests large SCTP application records.
tests/api.c Adds sniffer overlap regression coverage.
src/sniffer.c Corrects overlap trimming and reassembly.
src/internal.c Fixes handshake sizing and changes MTU selection.
examples/sctp/sctp-server-dtls.c Improves error handling and shutdown.
examples/sctp/sctp-client-dtls.c Validates I/O and shutdown results.

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

Comment thread src/internal.c Outdated
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.

2 participants