Fixes issue with building crypt benchmark with only ED/Curve25519 enabled with static rng missing.

pull/321/head
David Garske 2016-02-22 16:46:13 +01:00
parent b72c83e191
commit 731e13ecf2
1 changed files with 2 additions and 1 deletions

View File

@ -199,7 +199,8 @@ static int OpenNitroxDevice(int dma_mode,int dev_id)
#endif
#if !defined(NO_RSA) || !defined(NO_DH) \
|| defined(WOLFSSL_KEYGEN) || defined(HAVE_ECC)
|| defined(WOLFSSL_KEYGEN) || defined(HAVE_ECC) \
|| defined(HAVE_CURVE25519) || defined(HAVE_ED25519)
#define HAVE_LOCAL_RNG
static WC_RNG rng;
#endif