mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2025-12-06 07:12:32 +01:00
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
|
|
@ -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,
|
status = psa_get_key_attributes( ssl->handshake->ecdh_psa_privkey,
|
||||||
&key_attributes );
|
&key_attributes );
|
||||||
if( status != PSA_SUCCESS)
|
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_psa_type = psa_get_key_type( &key_attributes );
|
||||||
ssl->handshake->ecdh_bits = psa_get_key_bits( &key_attributes );
|
ssl->handshake->ecdh_bits = psa_get_key_bits( &key_attributes );
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue