Make RAND_DRBG fork-safe
authorRich Salz <rsalz@openssl.org>
Sun, 6 Aug 2017 22:12:28 +0000 (18:12 -0400)
committerRich Salz <rsalz@openssl.org>
Mon, 7 Aug 2017 12:30:28 +0000 (08:30 -0400)
commita35f607c9f9112c649b367d05639394fc1c30771
treec27b67822ed2816005cae84502c5b5e2ae6aee14
parent99801878c09404e45d8176739d3a555c41b77d0b
Make RAND_DRBG fork-safe

Use atfork to count child forks, and reseed DRBG when the counts don't
match.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/4101)
CHANGES
crypto/include/internal/rand_int.h
crypto/init.c
crypto/rand/drbg_lib.c
crypto/rand/rand_lcl.h
crypto/rand/rand_lib.c