More clarity for ifdef orders

This commit is contained in:
Philippe Antoine 2019-06-11 16:02:43 +02:00
parent 0ff84fb6fe
commit f91b3722cf
2 changed files with 2 additions and 2 deletions

View File

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

View File

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