mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-27 06:41:08 +00:00
Fix incorrect error message
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
parent
287527042b
commit
dd428d3650
@ -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 );
|
const mbedtls_pk_context *private_key = mbedtls_ssl_own_key( ssl );
|
||||||
if( private_key == NULL)
|
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 );
|
return( MBEDTLS_ERR_SSL_PRIVATE_KEY_REQUIRED );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user