Skip to content

MbedTLS: print protocol, suite and verify reasons - #657

Merged
ColtonWilley merged 1 commit into
wolfSSL:masterfrom
padelsbach:mbedtls-info
Nov 23, 2026
Merged

ColtonWilley merged 1 commit into
wolfSSL:masterfrom
padelsbach:mbedtls-info

Conversation

@padelsbach

Copy link
Copy Markdown
Contributor

Mbed TLS compatibility client now prints the protocol and cipher suite after the handshake. When the certificate check fails, it prints the reasons from mbedtls_x509_crt_verify_info(), as the Mbed TLS sample programs do.

Previously, a failed check printed only tls_get() returned -9984.

Copilot AI balanced review requested due to automatic review settings November 23, 2026 21:07

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.

🟢 Approval recommended

No active review issues are recorded for the connection and certificate-verification diagnostic changes.

No open issues 🎉

What changed in this PR

This PR improves diagnostics in the Mbed TLS compatibility client by reporting negotiated connection details and explaining certificate verification failures.

Changes:

  • Print the protocol and cipher suite after a successful handshake, and verification reasons when certificate checks fail.
  • Extend checks and documentation to cover the new diagnostic output.
  • Ignore generated compile_commands.json files.
File Description
mbedtls-compat/​README.md Documents diagnostic output and updated test expectations.
mbedtls-compat/​client-tls-mbedtls.c Prints connection details and certificate verification reasons.
mbedtls-compat/​check.sh Checks for handshake details and verification-error output.
.gitignore Ignores generated compilation database files.

Review effort: Balanced

@ColtonWilley
ColtonWilley merged commit 6838492 into wolfSSL:master Nov 23, 2026
221 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.

3 participants