tinyCrypt: Avoid unused var warning by marking vars as unused

This commit is contained in:
Hanno Becker 2019-07-24 11:12:41 +01:00
parent 29d165565c
commit 7a19633c99
2 changed files with 2 additions and 0 deletions

View file

@ -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 );
}

View file

@ -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,