From 91cf7693b9fe3f9bbd36115d6e3784f3957c6cf6 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Mon, 12 Aug 2019 13:57:04 +0100 Subject: [PATCH] Remove restartable ECP return code check from ECDH suite handling mbedtls_ecdh_read_params() is not restartable. --- library/ssl_cli.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/library/ssl_cli.c b/library/ssl_cli.c index 9c859eb33..e89820693 100644 --- a/library/ssl_cli.c +++ b/library/ssl_cli.c @@ -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 ); }