Skip to content

Add Mbed TLS key export and max fragment length - #61

Open
padelsbach wants to merge 1 commit into
wolfSSL:masterfrom
padelsbach:exporter-mfl
Open

padelsbach wants to merge 1 commit into
wolfSSL:masterfrom
padelsbach:exporter-mfl

Conversation

@padelsbach

Copy link
Copy Markdown
Contributor

Adds mbedtls_ssl_export_keying_material, mbedtls_ssl_conf_max_frag_len and mbedtls_ssl_get_max_out_record_payload. Turns on wolfSSL's HAVE_KEYING_MATERIAL and HAVE_MAX_FRAGMENT.

Copilot AI balanced review requested due to automatic review settings November 17, 2026 06:56

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

Reapplying SSL defaults leaves the previous fragment limit active, affecting subsequent connections and payload-size reporting; the limit needs to be reset and covered by a regression test.

1 open issue
What changed in this PR

Adds keying-material export and maximum-fragment-length support to the Mbed TLS compatibility layer, backed by wolfSSL.

Changes:

  • Exposes the new APIs and generates feature macros from wolfSSL settings.
  • Applies configured and negotiated record limits when writing TLS data.
  • Adds coverage for fragment limits and key export, and documents compatibility differences.
File Description
wolfpsa/​mbedtls_compat/​mbedtls/​ssl.h Declares APIs, fragment-length constants, and configuration storage.
user_settings.h Enables the required wolfSSL features by default.
tools/​psa_want_probe.c Emits matching Mbed TLS feature macros.
test/​mbedtls_compat/​ssl_test.c Tests fragment limits, key export, and input validation.
src/​mbedtls/​ssl.c Implements the APIs and limits outgoing record payloads.
README.md Documents API availability and backend compatibility limits.

Review effort: Balanced

Comment thread src/mbedtls/ssl.c Resolved
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