1gnutls_certificate_set_x509_trust(3)gnutlsgnutls_certificate_set_x509_trust(3)
2
3
4
6 gnutls_certificate_set_x509_trust - Used to add trusted CAs in a
7 gnutls_certificate_credentials_t structure
8
10 #include <gnutls/gnutls.h>
11
12 int gnutls_certificate_set_x509_trust(gnutls_certificate_credentials_t
13 res, gnutls_x509_crt_t * ca_list, int ca_list_size);
14
16 gnutls_certificate_credentials_t res
17 is a gnutls_certificate_credentials_t structure.
18
19 gnutls_x509_crt_t * ca_list
20 is a list of trusted CAs
21
22 int ca_list_size
23 holds the size of the CA list
24
26 This function adds the trusted CAs in order to verify client or server
27 certificates. In case of a client this is not required to be called if
28 the certificates are not verified using gnutls_certificate_ver‐
29 ify_peers2(). This function may be called multiple times.
30
31 In case of a server the CAs set here will be sent to the client if a
32 certificate request is sent. This can be disabled using gnutls_certifi‐
33 cate_send_x509_rdn_sequence().
34
36 GNUTLS_E_SUCCESS on success, or an error code.
37
39 2.4.0
40
42 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
43 http://www.gnu.org/software/gnutls/ General help using GNU software:
44 http://www.gnu.org/gethelp/
45
47 Copyright © 2008 Free Software Foundation.
48 Copying and distribution of this file, with or without modification,
49 are permitted in any medium without royalty provided the copyright
50 notice and this notice are preserved.
51
53 The full documentation for gnutls is maintained as a Texinfo manual.
54 If the info and gnutls programs are properly installed at your site,
55 the command
56
57 info gnutls
58
59 should give you access to the complete manual.
60
61
62
63gnutls 2.8.6gnutls_certificate_set_x509_trust(3)