CRYPTO_THREAD_get_local

Return the calling thread's value for thread-local key key.

Synopsis

Declared in <openssl/crypto.h>

void*
CRYPTO_THREAD_get_local(CRYPTO_THREAD_LOCAL* key);

Return Value

Stored pointer for this thread, or NULL if unset.

Parameters

NameDescription
keyThread-local key from CRYPTO_THREAD_init_local().