settings.h: GenSeed for test only option

This commit is contained in:
Takashi Kojo 2015-09-26 08:03:49 +09:00
parent 0c95a5e940
commit f450ac0684
2 changed files with 3 additions and 6 deletions

View File

@ -102,7 +102,7 @@ int wc_RNG_GenerateByte(WC_RNG* rng, byte* b)
#include <wincrypt.h>
#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 <fcntl.h>
#ifndef EBSNET
#include <unistd.h>

View File

@ -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