Skip to content

Add MbedTLS example - #653

Open
padelsbach wants to merge 1 commit into
wolfSSL:masterfrom
padelsbach:mbedtls-compat
Open

padelsbach wants to merge 1 commit into
wolfSSL:masterfrom
padelsbach:mbedtls-compat

Conversation

@padelsbach

@padelsbach padelsbach commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Add the example from the docs repo to the examples repo

Copilot AI balanced review requested due to automatic review settings November 3, 2026 21:41

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.

🟡 Changes recommended

Non-blocking TLS I/O mishandles retryable results and partial writes, while CI dependency fetching fails for SHA inputs and uses unpinned or potentially mismatched commits.

4 open issues
What changed in this PR

Adds an Mbed TLS 4.x client example using wolfPSA’s compatibility layer over wolfSSL, integrated with the repository’s example build and CI infrastructure.

Changes:

  • Adds a TLS client with certificate verification and a non-blocking socket option.
  • Adds build instructions and checks for TLS 1.2, TLS 1.3, and expected error cases.
  • Registers the example in CI and adds dependency-fetch configuration.
File Description
README.md Introduces and links the compatibility example.
mbedtls-compat/​README.md Documents building, running, testing, and compatibility limitations.
mbedtls-compat/​Makefile Builds the client and test servers and exposes check targets.
mbedtls-compat/​client-tls-mbedtls.c Implements the client using Mbed TLS APIs.
mbedtls-compat/​check.sh Checks protocol versions, socket modes, and error results.
.gitignore Excludes generated example binaries.
.github/​workflows/​examples.yml Passes the wolfSSL ref to dependency-fetch steps.
.github/​examples-manifest.yml Registers the example and its dependency builds.

Review effort: Balanced

Comment thread .github/examples-manifest.yml Resolved
Comment thread .github/examples-manifest.yml Resolved
Comment thread mbedtls-compat/client-tls-mbedtls.c Resolved
Comment thread mbedtls-compat/client-tls-mbedtls.c Resolved
@padelsbach
padelsbach marked this pull request as ready for review November 17, 2026 02:26
@padelsbach
padelsbach requested a review from Frauschi November 17, 2026 18:09
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