Fix build when OpenSSL has no EGD support
This commit is contained in:
@@ -486,7 +486,7 @@ fortuna_reseed(void)
|
||||
entropy_p = 1;
|
||||
}
|
||||
#endif
|
||||
#ifndef NO_RAND_EGD_METHOD
|
||||
#if !defined(NO_RAND_EGD_METHOD) && defined(HAVE_RAND_EGD)
|
||||
/*
|
||||
* Only to get egd entropy if /dev/random or arc4rand failed since
|
||||
* it can be horribly slow to generate new bits.
|
||||
|
@@ -125,7 +125,7 @@ main(int argc, char **argv)
|
||||
else if (strcasecmp(rand_method, "unix") == 0)
|
||||
RAND_set_rand_method(RAND_unix_method());
|
||||
#endif
|
||||
#ifndef NO_RAND_EGD_METHOD
|
||||
#if !defined(NO_RAND_EGD_METHOD) && defined(HAVE_RAND_EGD)
|
||||
else if (strcasecmp(rand_method, "egd") == 0)
|
||||
RAND_set_rand_method(RAND_egd_method());
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user