[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
Open
[zep fromlist] add guard for error code that was removed in TF-PSA-Cr…#225valeriosetti wants to merge 3 commits intozephyrproject-rtos:mainfrom
valeriosetti wants to merge 3 commits intozephyrproject-rtos:mainfrom
Conversation
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>
4e059f3 to
60e49f5
Compare
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 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