[#SSL_CTX_set_tlsext_ticket_key_evp_cb]
= SSL&lowbar;CTX&lowbar;set&lowbar;tlsext&lowbar;ticket&lowbar;key&lowbar;evp&lowbar;cb
:mrdocs:

Set the TLS session&hyphen;ticket key callback using EVP cipher and MAC contexts&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;CTX&lowbar;set&lowbar;tlsext&lowbar;ticket&lowbar;key&lowbar;evp&lowbar;cb(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    int(* fp)(xref:SSL.adoc[SSL]*, unsigned char*, unsigned char*, xref:EVP_CIPHER_CTX.adoc[EVP&lowbar;CIPHER&lowbar;CTX]*, xref:EVP_MAC_CTX.adoc[EVP&lowbar;MAC&lowbar;CTX]*, int));
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context whose ticket encryption keys are managed by `fp&period;`
| *fp*
| Callback invoked to initialize encrypt&sol;decrypt&sol;HMAC state for ticket processing, or NULL to clear&period;
|===


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