



@deftypefun {void} {gnutls_certificate_set_verify_limits} (gnutls_certificate_credentials_t @var{res}, unsigned int @var{max_bits}, unsigned int @var{max_depth})
@var{res}: is a gnutls_certificate_credentials type

@var{max_bits}: unused; retained for backwards compatibility

@var{max_depth}: is the maximum number of certificates in the peer's chain (default 101)

This function will set an upper limit for the default
verification function, @code{gnutls_certificate_verify_peers2()} , to avoid
denial of service attacks. You can set  @code{max_depth} to zero to disable
the limit.
@end deftypefun
