[#SSL_CTX_set_security_callback]
= SSL&lowbar;CTX&lowbar;set&lowbar;security&lowbar;callback
:mrdocs:

Install a security&hyphen;policy callback used by connections created from a context&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;security&lowbar;callback(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    int(* cb)(xref:SSL.adoc[SSL] const*, xref:SSL_CTX.adoc[SSL&lowbar;CTX] const*, int, int, int, void*, void*));
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context whose connections inherit `cb&period;`
| *cb*
| Security callback, or NULL to restore the default&semi; see SSL&lowbar;CTX&lowbar;set&lowbar;security&lowbar;level(3)&period;
|===


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