rand: note that locking needs to be explicitly enabled.

Fixes #13912

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/14224)
This commit is contained in:
Pauli 2021-02-18 11:55:04 +10:00
parent 76e48c9d66
commit 8b3facd732

View File

@ -311,6 +311,12 @@ or the properties in the case of B<OSSL_RAND_PARAM_PROPERTIES>.
=back
=head1 NOTES
An B<EVP_RAND_CTX> needs to have locking enabled if it acts as the parent of
more than one child and the children can be accessed concurrently. This must
be done by explicitly calling EVP_RAND_enable_locking().
=head1 RETURN VALUES
EVP_RAND_fetch() returns a pointer to a newly fetched B<EVP_RAND>, or