1gnutls_certificate_set_verify_limits(g3n)utglnsutls_certificate_set_verify_limits(3)
2
3
4
6 gnutls_certificate_set_verify_limits - This function will set the upper
7 limits to be used at certificate verification
8
10 #include <gnutls/gnutls.h>
11
12 void gnutls_certificate_set_verify_limits(gnutls_certificate_creden‐
13 tials_t res, unsigned int max_bits, unsigned int max_depth);
14
16 gnutls_certificate_credentials_t res
17 is a gnutls_certificate_credentials structure
18
19 unsigned int max_bits
20 is the number of bits of an acceptable certificate (default
21 8200)
22
23 unsigned int max_depth
24 is maximum depth of the verification of a certificate chain
25 (default 5)
26
28 This function will set some upper limits for the default verification
29 function, gnutls_certificate_verify_peers2(), to avoid denial of ser‐
30 vice attacks.
31
33 Report bugs to <bug-gnutls@gnu.org>.
34
36 Copyright © 2006 Free Software Foundation.
37 Permission is granted to make and distribute verbatim copies of this
38 manual provided the copyright notice and this permission notice are
39 preserved on all copies.
40
42 The full documentation for gnutls is maintained as a Texinfo manual.
43 If the info and gnutls programs are properly installed at your site,
44 the command
45
46 info gnutls
47
48 should give you access to the complete manual.
49
50
51
52gnutls 1.6g.n3utls_certificate_set_verify_limits(3)