[#SSL_CTX_set_num_tickets]
= SSL&lowbar;CTX&lowbar;set&lowbar;num&lowbar;tickets
:mrdocs:

Set how many TLSv1&period;3 session tickets servers created from a context send after a full handshake&period;

== Synopsis

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

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

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Server SSL context whose default ticket count is set (typically before the handshake)&period;
| *num&lowbar;tickets*
| Number of tickets to send&semi; 0 disables tickets (resumption still issues at most one if non&hyphen;zero)&period;
|===


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