Skip to content

Commit f389629

Browse files
committed
Move a restartable ecp context to a conditional compilation block
This was an unused variable when compiling with parameter validation but without ecp_restartable
1 parent f352f75 commit f389629

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/suites/test_suite_ecp.function

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ void ecp_invalid_param( )
4343
unsigned char buf[42] = { 0 };
4444
const unsigned char *null_buf = NULL;
4545
mbedtls_ecp_group_id valid_group = MBEDTLS_ECP_DP_SECP192R1;
46+
#if defined(MBEDTLS_ECP_RESTARTABLE)
4647
mbedtls_ecp_restart_ctx restart_ctx;
48+
#endif /* MBEDTLS_ECP_RESTARTABLE */
4749

4850
TEST_INVALID_PARAM( mbedtls_ecp_point_init( NULL ) );
4951
TEST_INVALID_PARAM( mbedtls_ecp_keypair_init( NULL ) );

0 commit comments

Comments
 (0)