Fix incorrect error message

Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
Paul Elliott 2022-05-13 17:43:16 +01:00
parent 287527042b
commit dd428d3650

View File

@ -2858,7 +2858,7 @@ static int ssl_get_ecdh_params_from_cert( mbedtls_ssl_context *ssl )
const mbedtls_pk_context *private_key = mbedtls_ssl_own_key( ssl );
if( private_key == NULL)
{
MBEDTLS_SSL_DEBUG_MSG( 1, ( "got no ECDH private key" ) );
MBEDTLS_SSL_DEBUG_MSG( 1, ( "got no server private key" ) );
return( MBEDTLS_ERR_SSL_PRIVATE_KEY_REQUIRED );
}