Repository navigation
Add Mbed TLS 3.6 conf_min_version and conf_max_version - #77
Merged
Merged
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The always-included compatibility test unconditionally references constants and legacy setters hidden by MBEDTLS_DEPRECATED_REMOVED, causing the unit-test target to fail compilation in that configuration.
1 open issue
What changed in this PR
This PR begins Mbed TLS 3.6 support in wolfPSA’s compatibility layer by adding legacy TLS version setters alongside the existing 4.x API.
Changes:
- Adds major/minor version constants and deprecated minimum/maximum version setters.
- Reports version 3.6.8 when applications define
WOLFPSA_MBEDTLS_3. - Adds compatibility tests and documents supported APIs, limitations, and planned work.
| File | Description |
|---|---|
wolfpsa/mbedtls_compat/mbedtls/ssl.h |
Declares legacy setters and version constants with deprecation guards. |
wolfpsa/mbedtls_compat/mbedtls/build_info.h |
Selects 3.6.8 or 4.2.0 version macros. |
test/mbedtls_compat/mbedtls3_test.c |
Tests version macros and equivalence of version setters. |
test/mbedtls_compat/Makefile |
Includes the new test with 3.6 compatibility enabled. |
src/mbedtls/mbedtls3.c |
Implements legacy setters through existing TLS version APIs. |
Makefile |
Updates a comment to mention 3.6 compatibility. |
docs/mbedtls-compatibility.md |
Documents 3.6 configuration, API coverage, and limitations. |
Review effort: Balanced
Frauschi
reviewed
Nov 24, 2026
Frauschi
left a comment
Member
There was a problem hiding this comment.
3 comments inline, nothing blocking.
Frauschi
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This is the first feature for compatibility with MbedTLS 3.x.
Adds the following:
mbedtls_ssl_conf_min_versionandmbedtls_ssl_conf_max_version, withMBEDTLS_SSL_MAJOR_VERSION_3,MBEDTLS_SSL_MINOR_VERSION_3andMBEDTLS_SSL_MINOR_VERSION_4