diff options
author | Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> | 2020-01-06 01:50:43 +0100 |
---|---|---|
committer | Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> | 2020-01-07 16:28:15 +0100 |
commit | 2e912f63a41852012e30aab3553ebcf9cd992d99 (patch) | |
tree | 60639f1804cfac7cdbe75cbb3500ecf2346600b1 /crypto/info.c | |
parent | d368d9d2e4bce444b3c56db55aab5f8450814209 (diff) |
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)
Diffstat (limited to 'crypto/info.c')
-rw-r--r-- | crypto/info.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/info.c b/crypto/info.c index 613ddc7d8c..8e674fc30a 100644 --- a/crypto/info.c +++ b/crypto/info.c @@ -8,6 +8,7 @@ */ #include <openssl/crypto.h> +#include "crypto/rand.h" #include "crypto/dso_conf.h" #include "internal/thread_once.h" #include "internal/cryptlib.h" |