drbg: add handling for cases where TSAN isn't available
authorPauli <pauli@openssl.org>
Wed, 12 Jan 2022 04:01:17 +0000 (15:01 +1100)
committerPauli <pauli@openssl.org>
Thu, 13 Jan 2022 10:46:34 +0000 (21:46 +1100)
commit8ff861dcee38a41ce93374753e8c462e4b9012e2
treee1a08ace571e90765c61795e49efb9f279e0924d
parent43f132778b138870120d965f2fb61aa7411b78b2
drbg: add handling for cases where TSAN isn't available

Most of the DRGB code is run under lock from the EVP layer.  This is relied
on to make the majority of TSAN operations safe.  However, it is still necessary
to enable locking for all DRBGs created.

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/17479)
providers/implementations/rands/drbg.c