Skip to content

reject an EOF without close_notify in the Mbed TLS and wolfSSL read - #2649

Merged
yhirose merged 2 commits into
yhirose:masterfrom
metsw24-max:tls-eof-without-close-notify
Oct 27, 2026
Merged

yhirose merged 2 commits into
yhirose:masterfrom
metsw24-max:tls-eof-without-close-notify

Conversation

@metsw24-max

Copy link
Copy Markdown
Contributor

TLS EOF without close_notify read as a clean end on Mbed TLS and wolfSSL
The Mbed TLS transport callback turned a bare TCP EOF into a close_notify and the wolfSSL read returned 0 for one without asking wolfSSL_get_error, so a response delimited by the connection close could be cut short on the path and still come back complete, where the OpenSSL backend reports a read error. Both reads now end cleanly only on a close_notify, and the new test fails on the unpatched Mbed TLS and wolfSSL builds and passes on all three backends.

@yhirose

yhirose commented Oct 27, 2026

Copy link
Copy Markdown
Owner

Thanks!

@yhirose
yhirose merged commit 25ba40f into yhirose:master Oct 27, 2026
27 of 28 checks passed
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