[#SSL_CTX_set_verify]
= SSL&lowbar;CTX&lowbar;set&lowbar;verify
:mrdocs:

Set peer certificate verification mode and optional callback for an SSL 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;verify(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    int mode,
    xref:SSL_verify_cb.adoc[SSL&lowbar;verify&lowbar;cb] callback);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context whose default verify settings are updated (inherited by SSL&lowbar;new)&period;
| *mode*
| Bitmask of SSL&lowbar;VERIFY&lowbar;&ast; flags controlling whether and how peers are verified&period;
| *callback*
| Optional verify callback invoked during certificate checking, or NULL for the default&period;
|===


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