openssl/include
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
..
crypto X509: Refactor X509_PUBKEY processing to include provider side keys 2021-02-24 10:17:14 +01:00
internal Don't hold a lock when calling a callback in ossl_namemap_doall_names 2021-02-25 08:37:22 +10:00
openssl Don't hold a lock when calling a callback in ossl_namemap_doall_names 2021-02-25 08:37:22 +10:00