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> #include <wincrypt.h>
#else #else
#if !defined(NO_DEV_RANDOM) && !defined(CUSTOM_RAND_GENERATE) && \ #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> #include <fcntl.h>
#ifndef EBSNET #ifndef EBSNET
#include <unistd.h> #include <unistd.h>

View File

@@ -57,7 +57,7 @@
/* Uncomment next line if using FreeRTOS */ /* Uncomment next line if using FreeRTOS */
/* #define FREERTOS */ /* #define FREERTOS */
/* Uncomment next line if using FreeRTOS-Plus TCP */ /* Uncomment next line if using FreeRTOS+ TCP */
/* #define FREERTOS_TCP */ /* #define FREERTOS_TCP */
/* Uncomment next line if using FreeRTOS Windows Simulator */ /* 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)) #define XFREE(p, h, type) vPortFree((p))
#endif #endif
#define CUSTOM_RAND_GENERATE testRandGen /* for test use only */ #define WOLFSSL_GENSEED_FORTEST
static int testRandGen(void) {
return 0;
}
#define NO_WOLFSSL_DIR #define NO_WOLFSSL_DIR
#define NO_WRITEV #define NO_WRITEV