[#SSL_CTX_set_msg_callback]
= SSL&lowbar;CTX&lowbar;set&lowbar;msg&lowbar;callback
:mrdocs:

Install a callback that observes SSL&sol;TLS&sol;QUIC protocol messages on new connections&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;msg&lowbar;callback(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    void(* cb)(int, int, int, void const*, size&lowbar;t, xref:SSL.adoc[SSL]*, void*));
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context whose new SSL objects inherit `cb&period;`
| *cb*
| Message callback, or NULL to disable&semi; see SSL&lowbar;set&lowbar;msg&lowbar;callback for argument meanings&period;
|===


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