openssl/crypto/rand
Richard Levitte 5006b37b31 In rand_cleanup_int(), don't go creating a default method
If no default method was yet given, RAND_get_rand_method() will set it
up.  Doing so just to clean it away seems pretty silly, so instead,
use the default_RAND_meth variable directly.

This also clears a possible race condition where this will try to init
things, such as ERR or ENGINE when in the middle of a OPENSSL_cleanup.

Fixes #3128

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3136)
2017-04-06 10:28:43 +02:00
..
build.info Remove Netware and OS/2 2016-03-17 17:06:57 -04:00
md_rand.c Clean up references to FIPS 2017-02-28 15:26:25 +01:00
rand_egd.c RAND_egd_bytes: No need to check RAND_status on connection error. 2017-01-24 14:39:20 +01:00
rand_err.c Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
rand_lcl.h Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
rand_lib.c In rand_cleanup_int(), don't go creating a default method 2017-04-06 10:28:43 +02:00
rand_unix.c Convert memset calls to OPENSSL_cleanse 2016-06-30 15:51:57 +01:00
rand_vms.c VSI submission: make the VMS version of RAND_poll() faster and more secure 2016-08-04 16:51:39 +02:00
rand_win.c Fix one more instance of incorrect OPENSSL_API_COMPAT value 2016-06-27 11:51:50 +01:00
randfile.c updated macro spacing for styling purposes 2016-12-12 13:50:17 +00:00