mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-25 15:05:45 +01:00
Move a restartable ecp context to a conditional compilation block
This was an unused variable when compiling with parameter validation but without ecp_restartable
This commit is contained in:
parent
6f76795bf5
commit
ed68b31090
@ -43,7 +43,9 @@ void ecp_invalid_param( )
|
|||||||
unsigned char buf[42] = { 0 };
|
unsigned char buf[42] = { 0 };
|
||||||
const unsigned char *null_buf = NULL;
|
const unsigned char *null_buf = NULL;
|
||||||
mbedtls_ecp_group_id valid_group = MBEDTLS_ECP_DP_SECP192R1;
|
mbedtls_ecp_group_id valid_group = MBEDTLS_ECP_DP_SECP192R1;
|
||||||
|
#if defined(MBEDTLS_ECP_RESTARTABLE)
|
||||||
mbedtls_ecp_restart_ctx restart_ctx;
|
mbedtls_ecp_restart_ctx restart_ctx;
|
||||||
|
#endif /* MBEDTLS_ECP_RESTARTABLE */
|
||||||
|
|
||||||
TEST_INVALID_PARAM( mbedtls_ecp_point_init( NULL ) );
|
TEST_INVALID_PARAM( mbedtls_ecp_point_init( NULL ) );
|
||||||
TEST_INVALID_PARAM( mbedtls_ecp_keypair_init( NULL ) );
|
TEST_INVALID_PARAM( mbedtls_ecp_keypair_init( NULL ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user