mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-22 13:51:09 +00:00
Map the new Mbed TLS error value in PSA
This commit is contained in:
parent
60f6b64b8f
commit
a13b905d8d
|
@ -351,6 +351,8 @@ static psa_status_t mbedtls_to_psa_error( int ret )
|
|||
return( PSA_ERROR_INSUFFICIENT_MEMORY );
|
||||
case MBEDTLS_ERR_ECP_HW_ACCEL_FAILED:
|
||||
return( PSA_ERROR_HARDWARE_FAILURE );
|
||||
case MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED:
|
||||
return( PSA_ERROR_CORRUPTION_DETECTED );
|
||||
|
||||
default:
|
||||
return( PSA_ERROR_GENERIC_ERROR );
|
||||
|
|
Loading…
Reference in a new issue