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

Set the maximum depth of CA certificates allowed above the peer for context&hyphen;wide verification&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&lowbar;depth(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    int depth);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context whose default verify depth is set (inherited by SSL&lowbar;new)&period;
| *depth*
| Maximum number of intermediate CA certificates permitted in the chain&period;
|===


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