| Home | Libraries | People | FAQ | More

###### ssl_stream::set_verify_depth (1 of 2 overloads)

Set the peer verification depth.

<h7> Synopsis </h7>

    void
    set_verify_depth(
        int depth);

<h7> Description </h7>

This function may be used to configure the maximum verification depth allowed by the stream.

<h7> Parameters </h7>

Name | Description
--- | ---
`depth` | Maximum depth for the certificate chain verification that shall be allowed.

<h7> Exceptions </h7>

Type | Thrown On
--- | ---
`boost::system::system_error` | Thrown on failure.

<h7> Remarks </h7>

Calls `SSL_set_verify_depth`.