Return translated PSA error in PSA version of ssl_get_ecdh_params_from_cert()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
parent
f788253ed3
commit
1335222f13
1 changed files with 1 additions and 1 deletions
|
@ -2886,7 +2886,7 @@ static int ssl_get_ecdh_params_from_cert( mbedtls_ssl_context *ssl )
|
|||
status = psa_get_key_attributes( ssl->handshake->ecdh_psa_privkey,
|
||||
&key_attributes );
|
||||
if( status != PSA_SUCCESS)
|
||||
return( MBEDTLS_ERR_PK_BAD_INPUT_DATA );
|
||||
return( psa_ssl_status_to_mbedtls( status ) );
|
||||
|
||||
ssl->handshake->ecdh_psa_type = psa_get_key_type( &key_attributes );
|
||||
ssl->handshake->ecdh_bits = psa_get_key_bits( &key_attributes );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue