SSL Test and Benchmark now handle missing POLARSSL_TIMING_C

This commit is contained in:
Paul Bakker 2013-07-04 10:34:10 +02:00
parent 1ef120f5fd
commit 44618dd798
2 changed files with 26 additions and 5 deletions

View file

@ -53,6 +53,7 @@
#define BUFSIZE 1024
#define HEADER_FORMAT " %-15s : "
#if defined(POLARSSL_TIMING_C)
static int myrand( void *rng_state, unsigned char *output, size_t len )
{
size_t use_len;
@ -77,6 +78,7 @@ static int myrand( void *rng_state, unsigned char *output, size_t len )
}
unsigned char buf[BUFSIZE];
#endif
#if !defined(POLARSSL_TIMING_C)
int main( int argc, char *argv[] )