Fix egd and devrandom source configs
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Sun, 17 May 2020 00:08:56 +0000 (02:08 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Wed, 20 May 2020 12:49:09 +0000 (14:49 +0200)
commit5f10fce37b234807c39d6b1b6440585b84b68b65
treedf1bc64e692004fe8084dd4e149a6f1b8290c433
parentde5e2cb541699e11a2b82de1d7f98f62bc207a1d
Fix egd and devrandom source configs

./config --with-rand-seed=egd

need to defines OPENSSL_RAND_SEED_EGD and OPENSSL_NO_EGD
so get rid of OPENSSL_NO_EGD (compiles but I did not really test EGD)

./config --with-rand-seed=devrandom

does not work since wait_random_seeded works under the assumption
that OPENSSL_RAND_SEED_GETRANDOM is supposed to be enabled as well,
that is usually the case, but not when only devrandom is enabled.
Skip the wait code in this special case.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11848)

(cherry picked from commit ddec332f329a432a45c0131d83f3bfb46114532b)
Configure
crypto/rand/rand_unix.c