[#CRYPTO_THREAD_set_local]
= CRYPTO&lowbar;THREAD&lowbar;set&lowbar;local
:mrdocs:

Store `val` in the thread&hyphen;local slot identified by `key&period;`

== Synopsis

Declared in `&lt;openssl&sol;crypto&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
CRYPTO&lowbar;THREAD&lowbar;set&lowbar;local(
    xref:CRYPTO_THREAD_LOCAL.adoc[CRYPTO&lowbar;THREAD&lowbar;LOCAL]* key,
    void* val);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| Thread&hyphen;local key previously created with CRYPTO&lowbar;THREAD&lowbar;init&lowbar;local()&period;
| *val*
| Pointer to store for the calling thread&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
