Skip to content

Add Mbed TLS 3.6 conf_min_version and conf_max_version - #77

Merged
Frauschi merged 2 commits into
wolfSSL:masterfrom
padelsbach:min-max-version
Nov 24, 2026
Merged

Frauschi merged 2 commits into
wolfSSL:masterfrom
padelsbach:min-max-version

Conversation

@padelsbach

Copy link
Copy Markdown
Contributor

This is the first feature for compatibility with MbedTLS 3.x.

Adds the following:

  • mbedtls_ssl_conf_min_version and mbedtls_ssl_conf_max_version, with MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MINOR_VERSION_3 and MBEDTLS_SSL_MINOR_VERSION_4

Copilot AI balanced review requested due to automatic review settings November 24, 2026 01:50
@padelsbach
padelsbach requested a review from Frauschi November 24, 2026 01:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread test/mbedtls_compat/mbedtls3_test.c Resolved

@Frauschi Frauschi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 comments inline, nothing blocking.

Comment thread src/mbedtls/mbedtls3.c Resolved
Comment thread test/mbedtls_compat/Makefile Resolved
Comment thread docs/mbedtls-compatibility.md Resolved
@padelsbach padelsbach removed their assignment Nov 24, 2026
@padelsbach
padelsbach requested a review from Frauschi November 24, 2026 17:28
@Frauschi
Frauschi merged commit d7f06e6 into wolfSSL:master Nov 24, 2026
109 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.

4 participants