1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-07 06:42:56 +03:00

Fix benchmark and udp_proxy dependency on MBEDTLS_HAVE_TIME

Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
Andrzej Kurek
2022-03-02 12:01:10 -05:00
parent 09e803ce0d
commit 6056e7af4f
2 changed files with 5 additions and 5 deletions

View File

@@ -30,10 +30,10 @@
#define mbedtls_free free
#endif
#if !defined(MBEDTLS_TIMING_C)
#if !defined(MBEDTLS_HAVE_TIME)
int main( void )
{
mbedtls_printf("MBEDTLS_TIMING_C not defined.\n");
mbedtls_printf("MBEDTLS_HAVE_TIME not defined.\n");
mbedtls_exit( 0 );
}
#else
@@ -41,8 +41,6 @@ int main( void )
#include <string.h>
#include <stdlib.h>
#include "mbedtls/timing.h"
#include "mbedtls/md5.h"
#include "mbedtls/ripemd160.h"
#include "mbedtls/sha1.h"
@@ -1304,4 +1302,4 @@ int main( int argc, char *argv[] )
mbedtls_exit( 0 );
}
#endif /* MBEDTLS_TIMING_C */
#endif /* MBEDTLS_HAVE_TIME */