]> git.ipfire.org Git - thirdparty/openssl.git/commit
Refactor init_get_thread_local to be more understandable
authorNeil Horman <nhorman@openssl.org>
Wed, 18 Jun 2025 15:16:47 +0000 (11:16 -0400)
committerNeil Horman <nhorman@openssl.org>
Fri, 20 Jun 2025 17:01:39 +0000 (13:01 -0400)
commitd259b8b85567410afa02acf2ba9dbbfb8ae53f61
tree5d7de423547c79c5e6e65bb8ee3d082987a1577b
parent5466197f16f61e08af70c73e622534f2b984c419
Refactor init_get_thread_local to be more understandable

We currently have a single function that does thread_local key
allocation/cleanup/fetching for our OSSL_init_thread_start/stop apis,
and its pretty confusing.  Wrap it up in some helper functions to make
it more clear at the call sites what we're trying to do.

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/initthread.c