mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-01 04:20:45 +00: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…
x
Reference in New Issue
Block a user