[#SSL_CTX_set_psk_find_session_callback]
= SSL&lowbar;CTX&lowbar;set&lowbar;psk&lowbar;find&lowbar;session&lowbar;callback
:mrdocs:

Set the TLSv1&period;3 PSK find&hyphen;session callback for SSL objects created from a context (server)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
SSL&lowbar;CTX&lowbar;set&lowbar;psk&lowbar;find&lowbar;session&lowbar;callback(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    xref:SSL_psk_find_session_cb_func.adoc[SSL&lowbar;psk&lowbar;find&lowbar;session&lowbar;cb&lowbar;func] cb);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Server SSL context whose default PSK find&hyphen;session callback is set&period;
| *cb*
| Callback that returns an SSL&lowbar;SESSION for the given identity, or NULL to clear&period;
|===


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