diff --git a/library/ssl_srv.c b/library/ssl_srv.c index 16b7f627b..d50896776 100644 --- a/library/ssl_srv.c +++ b/library/ssl_srv.c @@ -4204,6 +4204,7 @@ static int ssl_in_client_key_exchange_parse( mbedtls_ssl_context *ssl, mbedtls_ssl_suite_get_key_exchange( ciphersuite_info ) == MBEDTLS_KEY_EXCHANGE_ECDHE_RSA ) { + ((void) ret); if( mbedtls_ssl_ecdh_read_peerkey( ssl, &p, end ) != 0 ) return( MBEDTLS_ERR_SSL_HW_ACCEL_FAILED ); } diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 0500d8561..3cceb660a 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -1708,6 +1708,7 @@ int mbedtls_ssl_build_pms( mbedtls_ssl_context *ssl ) == MBEDTLS_KEY_EXCHANGE_ECDHE_RSA ) { const struct uECC_Curve_t * uecc_curve = uECC_secp256r1(); + ((void) ret); if( !uECC_shared_secret( ssl->handshake->ecdh_peerkey, ssl->handshake->ecdh_privkey,