[#CRYPTO_THREAD_init_local] = CRYPTO_THREAD_init_local :mrdocs: Allocate a thread‐local storage key for use with CRYPTO_THREAD_get/set_local(). == Synopsis Declared in `<openssl/crypto.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int CRYPTO_THREAD_init_local( xref:CRYPTO_THREAD_LOCAL.adoc[CRYPTO_THREAD_LOCAL]* key, void(* cleanup)(void*)); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *key* | Receives the new key on success. | *cleanup* | Optional destructor invoked on thread exit for non‐NULL values, or NULL. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#