Remove the RAND_get0_public() from fips provider initialization

It is not needed anymore and it causes leaks because
it is called when the FIPS provider libctx is not yet
properly set up.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14497)
This commit is contained in:
Tomas Mraz 2021-03-11 20:04:06 +01:00
parent 12b4e5821d
commit 061ae2f6a2

View File

@ -632,9 +632,6 @@ int OSSL_provider_init(const OSSL_CORE_HANDLE *handle,
goto err;
}
/* TODO(3.0): Tests will hang if this is removed */
(void)RAND_get0_public(libctx);
*out = fips_dispatch_table;
return 1;
err: