doc: Document that the OBJ creation functions don't lock.
authorPauli <pauli@openssl.org>
Tue, 22 Jun 2021 23:46:42 +0000 (09:46 +1000)
committerPauli <pauli@openssl.org>
Thu, 24 Jun 2021 05:50:26 +0000 (15:50 +1000)
commit0218bcdd3feab456135207c140998305df73ab7b
treee28b95bb13927fb1756d739938151d6b5ca0bd08
parent13757e128378af79b3522002b4ae6b2a0678cf96
doc: Document that the OBJ creation functions don't lock.

Neither OBJ_create() nor OBJ_add_sigid() use locks.  They are not thread safe.
They can and will cause the other OBJ_ query functions to fail in mysterious
ways if called concurrently with them.

There is no problem calling multiple query functions concurrently.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15865)
doc/man3/OBJ_nid2obj.pod
doc/man7/provider-base.pod