Skip to content

[zep fromlist] add guard for error code that was removed in TF-PSA-Cr…#225

Open
valeriosetti wants to merge 3 commits intozephyrproject-rtos:mainfrom
valeriosetti:fix-mbedtls-guard
Open

[zep fromlist] add guard for error code that was removed in TF-PSA-Cr…#225
valeriosetti wants to merge 3 commits intozephyrproject-rtos:mainfrom
valeriosetti:fix-mbedtls-guard

Conversation

@valeriosetti
Copy link

This is the cherry-pick of upstream PR openthread/openthread#12459

I need it for this Zephyr PR zephyrproject-rtos/zephyr#104031

Once the upstream PR will be merged I will create another PR (of convert this one) to align this repo to the upstream version

MBEDTLS_ERR_THREADING_BAD_INPUT_DATA is only available up to Mbed TLS
3.6.5 and it was removed in TF-PSA-Crypto.

See commit 8ef6acd6273073764c297ee0111220293cb37e23 in
Mbed-TLS/mbedtls-framework project.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
Starting from Mbed TLS 4.0, TLS functions will use psa_generate_random()
inernally, so there is no need to specify it as parameter or through
mbedtls_ssl_conf_rng().

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
Moving from Mbed TLS 3.6.5 to Mbed TLS 4.0 some error codes were given
the same value in order to simplify complexity. Unfortunately this means
that duplicated values cannot be used in a "switch()" case.
This commit comments out duplicated values in "MbedTls::MapError".

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
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.

1 participant