mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 11:35:38 +01:00
More clarity for ifdef orders
This commit is contained in:
parent
0ff84fb6fe
commit
f91b3722cf
@ -2010,10 +2010,10 @@ int main( int argc, char *argv[] )
|
|||||||
{
|
{
|
||||||
srand( 1 );
|
srand( 1 );
|
||||||
mbedtls_ssl_conf_rng( &conf, dummy_random, &ctr_drbg );
|
mbedtls_ssl_conf_rng( &conf, dummy_random, &ctr_drbg );
|
||||||
|
#if defined(MBEDTLS_HAVE_TIME)
|
||||||
#if defined(MBEDTLS_PLATFORM_TIME_ALT)
|
#if defined(MBEDTLS_PLATFORM_TIME_ALT)
|
||||||
mbedtls_platform_set_time( dummy_constant_time );
|
mbedtls_platform_set_time( dummy_constant_time );
|
||||||
#else
|
#else
|
||||||
#if defined(MBEDTLS_HAVE_TIME)
|
|
||||||
fprintf( stderr, "Warning: reproducible option used without constant time\n" );
|
fprintf( stderr, "Warning: reproducible option used without constant time\n" );
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -2829,10 +2829,10 @@ int main( int argc, char *argv[] )
|
|||||||
{
|
{
|
||||||
srand( 1 );
|
srand( 1 );
|
||||||
mbedtls_ssl_conf_rng( &conf, dummy_random, &ctr_drbg );
|
mbedtls_ssl_conf_rng( &conf, dummy_random, &ctr_drbg );
|
||||||
|
#if defined(MBEDTLS_HAVE_TIME)
|
||||||
#if defined(MBEDTLS_PLATFORM_TIME_ALT)
|
#if defined(MBEDTLS_PLATFORM_TIME_ALT)
|
||||||
mbedtls_platform_set_time( dummy_constant_time );
|
mbedtls_platform_set_time( dummy_constant_time );
|
||||||
#else
|
#else
|
||||||
#if defined(MBEDTLS_HAVE_TIME)
|
|
||||||
fprintf( stderr, "Warning: reproducible option used without constant time\n" );
|
fprintf( stderr, "Warning: reproducible option used without constant time\n" );
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user