Use OPENSSL_init_crypto(OPENSSL_INIT_BASE_ONLY, NULL) in libcrypto
authorTomas Mraz <tomas@openssl.org>
Thu, 11 Mar 2021 17:02:52 +0000 (18:02 +0100)
committerTomas Mraz <tomas@openssl.org>
Fri, 12 Mar 2021 14:11:21 +0000 (15:11 +0100)
commit12b4e5821d59b5d0c35f830e078d842583be6486
treeeeb47b387a932c61534473309439f075e641e443
parent343475126e55b4e814acb495196b92680df70a88
Use OPENSSL_init_crypto(OPENSSL_INIT_BASE_ONLY, NULL) in libcrypto

Calling OPENSSL_init_crypto(0, NULL) is a no-op and will
not properly initialize thread local handling.

Only the calls that are needed to initialize thread locals
are kept, the rest of the no-op calls are removed.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14497)
crypto/bio/b_addr.c
crypto/engine/eng_lib.c
crypto/err/err.c
crypto/rand/rand_lib.c
crypto/store/store_init.c
crypto/store/store_local.h
crypto/store/store_register.c