[#SSL_CTX_generate_session_ticket_fn]
= SSL&lowbar;CTX&lowbar;generate&lowbar;session&lowbar;ticket&lowbar;fn
:mrdocs:

Callback invoked just before a server creates a session ticket (set ticket appdata here)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
typedef int(* SSL&lowbar;CTX&lowbar;generate&lowbar;session&lowbar;ticket&lowbar;fn)(xref:SSL.adoc[SSL]*, void*);
----

== Return Value

Application&hyphen;defined status&semi; non&hyphen;zero continues ticket creation&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| SSL connection for which a ticket is about to be issued&period;
| *arg*
| Userdata from SSL&lowbar;CTX&lowbar;set&lowbar;session&lowbar;ticket&lowbar;cb()&period;
|===


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