]> git.ipfire.org Git - thirdparty/openssl.git/commit
Allow for differentiating between default and NULL context
authorNeil Horman <nhorman@openssl.org>
Tue, 17 Jun 2025 15:49:54 +0000 (11:49 -0400)
committerNeil Horman <nhorman@openssl.org>
Fri, 20 Jun 2025 17:01:39 +0000 (13:01 -0400)
commit24f0715e00a6ec1d33cf9bc602444b465bafcbb6
tree3fb4aaaf976593d1f7ba205b5b44fd1e92598946
parent4ed9a38a906fff536193d1bf686bec15501df6e9
Allow for differentiating between default and NULL context

Allow for use of default context in the thread-local api by using
get_concrete

This creates a problem however in that get_concrete access a
thread-local api, creating a recursive call that exhausts stack space

So create a special context token that identifys the no context use case
when we want to store thread-local data without an explicit context
index

Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27794)
crypto/async/async.c
crypto/context.c
crypto/err/err.c
crypto/threads_common.c
include/internal/threads_common.h