1gnutls_certificate_set_x509_trust_memg(n3ug)tnlustls_certificate_set_x509_trust_mem(3)
2
3
4
6 gnutls_certificate_set_x509_trust_mem - API function
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_certificate_set_x509_trust_mem(gnutls_certificate_creden‐
12 tials_t res, const gnutls_datum_t * ca, gnutls_x509_crt_fmt_t type);
13
15 gnutls_certificate_credentials_t res
16 is a gnutls_certificate_credentials_t structure.
17
18 const gnutls_datum_t * ca
19 is a list of trusted CAs or a DER certificate
20
21 gnutls_x509_crt_fmt_t type
22 is DER or PEM
23
25 This function adds the trusted CAs in order to verify client or server
26 certificates. In case of a client this is not required to be called if
27 the certificates are not verified using gnutls_certificate_ver‐
28 ify_peers2(). This function may be called multiple times.
29
30 In case of a server the CAs set here will be sent to the client if a
31 certificate request is sent. This can be disabled using gnutls_certifi‐
32 cate_send_x509_rdn_sequence().
33
35 the number of certificates processed or a negative value on error.
36
38 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
39 http://www.gnu.org/software/gnutls/ General help using GNU software:
40 http://www.gnu.org/gethelp/
41
43 Copyright © 2008 Free Software Foundation.
44 Copying and distribution of this file, with or without modification,
45 are permitted in any medium without royalty provided the copyright
46 notice and this notice are preserved.
47
49 The full documentation for gnutls is maintained as a Texinfo manual.
50 If the info and gnutls programs are properly installed at your site,
51 the command
52
53 info gnutls
54
55 should give you access to the complete manual.
56
57
58
59gnutls 2.12g.n6u.t1ls_certificate_set_x509_trust_mem(3)