]> 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:24:21 +0000 (11:24 +0200)
commit174c992b15e9c91f4d888625eb1728019037b9a3
tree4075b82f74d059ec096b29883d1371d69c2a55e7
parent9403c7d768f516988a6d4c4deffce190197961a6
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)

(cherry picked from commit 5909d0d3fc9b99b7b9f0577d29515a72fa94bfa0)
test/threadstest.c