[#SSL_CTX_set_keylog_callback]
= SSL&lowbar;CTX&lowbar;set&lowbar;keylog&lowbar;callback
:mrdocs:

Configure a callback that logs TLS key material for debugging (e&period;g&period; Wireshark)&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;keylog&lowbar;callback(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    xref:SSL_CTX_keylog_cb_func.adoc[SSL&lowbar;CTX&lowbar;keylog&lowbar;cb&lowbar;func] cb);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context whose connections invoke `cb` when keys are generated or received&period;
| *cb*
| Callback that should write `line` followed by a newline, or NULL to disable logging&period;
|===


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