| Home | Libraries | People | FAQ | More

##### ssl::stream::set_verify_depth (2 of 2 overloads)

Set the peer verification depth.

    boost::system::error_code set_verify_depth(
        int depth,
        boost::system::error_code & ec);

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

###### Parameters

depth

  Maximum depth for the certificate chain verification that shall be allowed.

ec

  Set to indicate what error occurred, if any.

###### Remarks

Calls `SSL_set_verify_depth`.