diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2019-02-15 00:03:50 +0100 |
---|---|---|
committer | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2019-03-01 18:29:56 +0100 |
commit | c352bd07ed2ff872876534c950a6968d75ef121e (patch) | |
tree | 0c3742aa52a5b3a223f8eee7db9900ec0ac16118 /ssl/s3_lib.c | |
parent | de4fb434c7f5fe7359dd9f57185bb98845d8e6f1 (diff) |
Fix seeding from random device w/o getrandom syscall
Use select to wait for /dev/random in readable state,
but do not actually read anything from /dev/random,
use /dev/urandom first.
Use linux define __NR_getrandom instead of the
glibc define SYS_getrandom, in case the kernel headers
are more current than the glibc headers.
Fixes #8215
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/8251)
(cherry picked from commit 38023b87f037f4b832c236dfce2a76272be08763)
Diffstat (limited to 'ssl/s3_lib.c')
0 files changed, 0 insertions, 0 deletions