Remove restartable ECP return code check from ECDH suite handling

mbedtls_ecdh_read_params() is not restartable.
This commit is contained in:
Hanno Becker 2019-08-12 13:57:04 +01:00
parent fb02e96cf5
commit 91cf7693b9

View file

@ -2274,10 +2274,6 @@ static int ssl_parse_server_ecdh_params( mbedtls_ssl_context *ssl,
(const unsigned char **) p, end ) ) != 0 )
{
MBEDTLS_SSL_DEBUG_RET( 1, ( "mbedtls_ecdh_read_params" ), ret );
#if defined(MBEDTLS_SSL__ECP_RESTARTABLE)
if( ret == MBEDTLS_ERR_ECP_IN_PROGRESS )
ret = MBEDTLS_ERR_SSL_CRYPTO_IN_PROGRESS;
#endif
return( ret );
}