CRYPTO_THREAD_set_local

Store val in the thread-local slot identified by key.

Synopsis

Declared in <openssl/crypto.h>

int
CRYPTO_THREAD_set_local(
    CRYPTO_THREAD_LOCAL* key,
    void* val);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
keyThread-local key previously created with CRYPTO_THREAD_init_local().
valPointer to store for the calling thread.