Convert the ENGINE struct_ref field to be an atomic
authorMatt Caswell <matt@openssl.org>
Thu, 11 May 2023 13:14:31 +0000 (14:14 +0100)
committerTomas Mraz <tomas@openssl.org>
Tue, 6 Jun 2023 15:09:13 +0000 (17:09 +0200)
commite568d64f9fd3505454704f333bc1e58286f3419d
treeb9af553f9bbbe1fc00b51372e91369ad0d87a5e7
parent68668243b176cd2bc53a83c6768d4f39930ba8ed
Convert the ENGINE struct_ref field to be an atomic

We use atomic primitives to up ref and down the struct_ref field rather
than relying on the global lock for this.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20950)
crypto/engine/eng_ctrl.c
crypto/engine/eng_init.c
crypto/engine/eng_lib.c
crypto/engine/eng_list.c
crypto/engine/eng_local.h
crypto/engine/tb_asnmth.c