mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
SSL Test and Benchmark now handle missing POLARSSL_TIMING_C
This commit is contained in:
parent
1ef120f5fd
commit
44618dd798
2 changed files with 26 additions and 5 deletions
|
|
@ -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[] )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue