[#SSL_CTX_set_session_ticket_cb] = SSL_CTX_set_session_ticket_cb :mrdocs: Register callbacks that attach and consume application data in TLS session tickets. == Synopsis Declared in `<openssl/ssl.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int SSL_CTX_set_session_ticket_cb( xref:SSL_CTX.adoc[SSL_CTX]* ctx, xref:SSL_CTX_generate_session_ticket_fn.adoc[SSL_CTX_generate_session_ticket_fn] gen_cb, xref:SSL_CTX_decrypt_session_ticket_fn.adoc[SSL_CTX_decrypt_session_ticket_fn] dec_cb, void* arg); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | Server SSL context that will invoke the ticket callbacks. | *gen_cb* | Called before ticket creation (may call SSL_SESSION_set1_ticket_appdata), or NULL. | *dec_cb* | Called after ticket decryption with `status` and optional appdata, or NULL. | *arg* | Opaque userdata passed to both callbacks. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#