[#SSL_CTX_set_timeout]
= SSL&lowbar;CTX&lowbar;set&lowbar;timeout
:mrdocs:

Set the default session timeout for `ctx` in seconds&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
long
SSL&lowbar;CTX&lowbar;set&lowbar;timeout(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    long t);
----

== Return Value

Previous timeout value in seconds&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context whose session cache timeout is updated&period;
| *t*
| New timeout in seconds&period;
|===


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