Move random-related defines to "crypto/rand.h"
authorDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Mon, 6 Jan 2020 00:50:43 +0000 (01:50 +0100)
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Tue, 7 Jan 2020 15:28:15 +0000 (16:28 +0100)
commit2e912f63a41852012e30aab3553ebcf9cd992d99
tree60639f1804cfac7cdbe75cbb3500ecf2346600b1
parentd368d9d2e4bce444b3c56db55aab5f8450814209
Move random-related defines to "crypto/rand.h"

This fixes commit 01036e2afbe116d608be048ed15930fc885ab2a8, which moved the
DEVRANDOM and DEVRANDOM_EGD defines into rand_unix.c. That change introduced
the regression that the compiler complains about missing declarations in
crypto/info.c when OpenSSL is configured using `--with-rand-seed=devrandom`
(resp. `--with-rand-seed=egd`)

Fixes #10759

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10762)
crypto/info.c
crypto/rand/rand_unix.c
include/crypto/rand.h