1gnutls_x509_trust_list_add_trust_mem(g3n)utglnsutls_x509_trust_list_add_trust_mem(3)
2
3
4
6 gnutls_x509_trust_list_add_trust_mem - API function
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_trust_list_add_trust_mem(gnutls_x509_trust_list_t list,
12 const gnutls_datum_t * cas, const gnutls_datum_t * crls,
13 gnutls_x509_crt_fmt_t type, unsigned int tl_flags, unsigned int
14 tl_vflags);
15
17 gnutls_x509_trust_list_t list
18 The list
19
20 const gnutls_datum_t * cas
21 A buffer containing a list of CAs (optional)
22
23 const gnutls_datum_t * crls
24 A buffer containing a list of CRLs (optional)
25
26 gnutls_x509_crt_fmt_t type
27 The format of the certificates
28
29 unsigned int tl_flags
30 flags from gnutls_trust_list_flags_t
31
32 unsigned int tl_vflags
33 gnutls_certificate_verify_flags if flags specifies
34 GNUTLS_TL_VERIFY_CRL
35
37 This function will add the given certificate authorities to the trusted
38 list.
39
40 If this function is used gnutls_x509_trust_list_deinit() must be called
41 with parameter all being 1.
42
44 The number of added elements is returned.
45
47 3.1
48
50 Report bugs to <bugs@gnutls.org>.
51 Home page: https://www.gnutls.org
52
53
55 Copyright © 2001-2019 Free Software Foundation, Inc., and others.
56 Copying and distribution of this file, with or without modification,
57 are permitted in any medium without royalty provided the copyright
58 notice and this notice are preserved.
59
61 The full documentation for gnutls is maintained as a Texinfo manual.
62 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
63 visit
64
65 https://www.gnutls.org/manual/
66
67gnutls 3.6g.n8utls_x509_trust_list_add_trust_mem(3)