[#SSL_SESSION_set1_ticket_appdata]
= SSL&lowbar;SESSION&lowbar;set1&lowbar;ticket&lowbar;appdata
:mrdocs:

Attach application data that will be stored inside a TLS session ticket&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;SESSION&lowbar;set1&lowbar;ticket&lowbar;appdata(
    xref:SSL_SESSION.adoc[SSL&lowbar;SESSION]* ss,
    void const* data,
    size&lowbar;t len);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ss*
| Session that will be serialized into a ticket (typically from the generate&hyphen;ticket callback)&period;
| *data*
| Application bytes to copy into the ticket, or NULL to clear&period;
| *len*
| Number of bytes at `data&semi;` ignored when `data` is NULL&period;
|===


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