Convert thread stop handling into a publish/subscribe model
authorMatt Caswell <matt@openssl.org>
Fri, 24 May 2019 10:45:48 +0000 (11:45 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 17 Jun 2019 14:32:54 +0000 (15:32 +0100)
commit242f84d06aca7030b2bd52043c39b0cb80c4fec6
treea88b317f8d8d5cd537eb95c12b592383c77604e6
parentd4c051cef338eecf092affbb479d1f87c1ea31d9
Convert thread stop handling into a publish/subscribe model

In later commits this will allow providers to subscribe to thread stop
events. We will need this in the FIPS module. We also make thread stop
handling OPENSSL_CTX aware (different OPENSSL_CTXs may have different
thread local data that needs cleaning up).

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9040)
crypto/async/async.c
crypto/err/err.c
crypto/include/internal/async.h
crypto/include/internal/cryptlib_int.h
crypto/include/internal/err_int.h
crypto/include/internal/rand_int.h
crypto/init.c
crypto/rand/drbg_lib.c