[#SSL_CTX_set_psk_client_callback]
= SSL&lowbar;CTX&lowbar;set&lowbar;psk&lowbar;client&lowbar;callback
:mrdocs:

Set the client PSK identity&sol;key callback used by connections from `ctx&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;client&lowbar;callback(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    xref:SSL_psk_client_cb_func.adoc[SSL&lowbar;psk&lowbar;client&lowbar;cb&lowbar;func] cb);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Client SSL&lowbar;CTX that will use PSK authentication&period;
| *cb*
| Callback that supplies the PSK identity and key, or NULL to clear&period;
|===


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