Only warns if MBEDTLS_HAVE_TIME

This commit is contained in:
Philippe Antoine 2019-06-11 12:15:17 +02:00
parent 7c9d72497d
commit 0ff84fb6fe
2 changed files with 4 additions and 0 deletions

View File

@ -2013,7 +2013,9 @@ int main( int argc, char *argv[] )
#if defined(MBEDTLS_PLATFORM_TIME_ALT)
mbedtls_platform_set_time( dummy_constant_time );
#else
#if defined(MBEDTLS_HAVE_TIME)
fprintf( stderr, "Warning: reproducible option used without constant time\n" );
#endif
#endif
}
else

View File

@ -2832,7 +2832,9 @@ int main( int argc, char *argv[] )
#if defined(MBEDTLS_PLATFORM_TIME_ALT)
mbedtls_platform_set_time( dummy_constant_time );
#else
#if defined(MBEDTLS_HAVE_TIME)
fprintf( stderr, "Warning: reproducible option used without constant time\n" );
#endif
#endif
}
else