[#SSL_CTX_decrypt_session_ticket_fn]
= SSL&lowbar;CTX&lowbar;decrypt&lowbar;session&lowbar;ticket&lowbar;fn
:mrdocs:

Application callback that decrypts&sol;validates a received session ticket&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
typedef xref:SSL_TICKET_RETURN.adoc[SSL&lowbar;TICKET&lowbar;RETURN](* SSL&lowbar;CTX&lowbar;decrypt&lowbar;session&lowbar;ticket&lowbar;fn)(xref:SSL.adoc[SSL]*, xref:SSL_SESSION.adoc[SSL&lowbar;SESSION]*, unsigned char const*, size&lowbar;t, xref:SSL_TICKET_STATUS.adoc[SSL&lowbar;TICKET&lowbar;STATUS], void*);
----

== Return Value

SSL&lowbar;TICKET&lowbar;RETURN&lowbar;&ast; instructing OpenSSL how to proceed&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| SSL connection that received the ticket&period;
| *ss*
| Session object to populate or reject&period;
| *keyname*
| Ticket key name from the ticket header&period;
| *keyname&lowbar;length*
| Length of `keyname` in bytes&period;
| *status*
| Preliminary ticket parse status (SSL&lowbar;TICKET&lowbar;&ast;), before app decrypt&period;
| *arg*
| Application pointer supplied to SSL&lowbar;CTX&lowbar;set&lowbar;session&lowbar;ticket&lowbar;cb()&period;
|===


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