]> git.ipfire.org Git - thirdparty/openssl.git/commit
Add a test for multi-threaded OBJ_create
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Sun, 31 Aug 2025 19:41:50 +0000 (21:41 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 25 Sep 2025 09:23:52 +0000 (11:23 +0200)
commit5909d0d3fc9b99b7b9f0577d29515a72fa94bfa0
tree167c96d5ad5cdd8a471f4d75356ed4af4170b630
parentde0944c9b3a77b6f3c7ed07a90f7d463301851a8
Add a test for multi-threaded OBJ_create

After a successful OBJ_create the returned NID should
be the same NID that is returned from OBJ_ln2nid and
should not change any more, but after an unsuccessful
OBJ_create, another thread must have created the object,
therefore OBJ_ln2nid should not return NID_undef in that
case.

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28582)
test/threadstest.c