From f450ac068414a30258158bbd6863449626f6ecfb Mon Sep 17 00:00:00 2001 From: Takashi Kojo Date: Sat, 26 Sep 2015 08:03:49 +0900 Subject: [PATCH] settings.h: GenSeed for test only option --- wolfcrypt/src/random.c | 2 +- wolfssl/wolfcrypt/settings.h | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/wolfcrypt/src/random.c b/wolfcrypt/src/random.c index 53aa093c7..61e5faab9 100644 --- a/wolfcrypt/src/random.c +++ b/wolfcrypt/src/random.c @@ -102,7 +102,7 @@ int wc_RNG_GenerateByte(WC_RNG* rng, byte* b) #include #else #if !defined(NO_DEV_RANDOM) && !defined(CUSTOM_RAND_GENERATE) && \ - !defined(WOLFSSL_MDK_ARM) && !defined(WOLFSSL_IAR_ARM) + !defined(WOLFSSL_GENSEED_FORTEST) && !defined(WOLFSSL_MDK_ARM) && !defined(WOLFSSL_IAR_ARM) #include #ifndef EBSNET #include diff --git a/wolfssl/wolfcrypt/settings.h b/wolfssl/wolfcrypt/settings.h index 5800918ad..726bb117c 100644 --- a/wolfssl/wolfcrypt/settings.h +++ b/wolfssl/wolfcrypt/settings.h @@ -57,7 +57,7 @@ /* Uncomment next line if using FreeRTOS */ /* #define FREERTOS */ -/* Uncomment next line if using FreeRTOS-Plus TCP */ +/* Uncomment next line if using FreeRTOS+ TCP */ /* #define FREERTOS_TCP */ /* Uncomment next line if using FreeRTOS Windows Simulator */ @@ -416,10 +416,7 @@ static char *fgets(char *buff, int sz, FILE *fp) #define XFREE(p, h, type) vPortFree((p)) #endif -#define CUSTOM_RAND_GENERATE testRandGen /* for test use only */ -static int testRandGen(void) { - return 0; -} +#define WOLFSSL_GENSEED_FORTEST #define NO_WOLFSSL_DIR #define NO_WRITEV