openssl/crypto/store
Matt Caswell d84f5515fa Don't hold a lock when calling a callback in ossl_namemap_doall_names
We don't want to hold a read lock when calling a user supplied callback.
That callback could do anything so the risk of a deadlock is high.
Instead we collect all the names first inside the read lock, and then
subsequently call the user callback outside the read lock.

Fixes #14225

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14250)
2021-02-25 08:37:22 +10:00
..
build.info STORE: Deprecate legacy / ENGINE functions 2020-09-03 17:48:32 +02:00
store_err.c ERR: Rebuild all generated error headers and source files 2020-11-24 15:22:33 +01:00
store_init.c Update copyright year 2020-10-15 14:10:06 +01:00
store_lib.c Fix OSSL_PARAM creation in OSSL_STORE_open_ex 2020-12-19 11:33:21 +01:00
store_local.h Rename OPENSSL_CTX prefix to OSSL_LIB_CTX 2020-10-15 11:59:53 +01:00
store_meth.c Don't hold a lock when calling a callback in ossl_namemap_doall_names 2021-02-25 08:37:22 +10:00
store_register.c Run the withlibctx.pl script 2020-10-01 09:25:20 +01:00
store_result.c Pass the object type and data structure from the pem2der decoder 2021-02-18 16:05:22 +00:00
store_strings.c Update copyright year 2020-10-15 14:10:06 +01:00