openssl/crypto/encode_decode
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 CORE: Generalise internal pass phrase prompter 2020-08-24 10:02:25 +02:00
decoder_err.c ERR: Rebuild all generated error headers and source files 2020-11-24 15:22:33 +01:00
decoder_lib.c DECODER: Add better tracing of the chain walking process 2021-02-20 21:15:12 +01:00
decoder_meth.c Don't hold a lock when calling a callback in ossl_namemap_doall_names 2021-02-25 08:37:22 +10:00
decoder_pkey.c Don't hold a lock when calling a callback in ossl_namemap_doall_names 2021-02-25 08:37:22 +10:00
encoder_err.c ERR: Rebuild all generated error headers and source files 2020-11-24 15:22:33 +01:00
encoder_lib.c ENCODER: Add tracing 2020-11-11 12:43:27 +01:00
encoder_local.h ENCODER: Add support for OSSL_FUNC_encoder_does_selection() 2020-11-11 12:43:27 +01:00
encoder_meth.c Don't hold a lock when calling a callback in ossl_namemap_doall_names 2021-02-25 08:37:22 +10:00
encoder_pkey.c Update copyright year 2021-02-18 15:05:17 +00:00