1gnutls_certificate_set_x509_trust_dirg(n3ug)tnlustls_certificate_set_x509_trust_dir(3)
2
3
4
6 gnutls_certificate_set_x509_trust_dir - API function
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_certificate_set_x509_trust_dir(gnutls_certificate_creden‐
12 tials_t cred, const char * ca_dir, gnutls_x509_crt_fmt_t type);
13
15 gnutls_certificate_credentials_t cred
16 is a gnutls_certificate_credentials_t type.
17
18 const char * ca_dir
19 is a directory containing the list of trusted CAs (DER or
20 PEM list)
21
22 gnutls_x509_crt_fmt_t type
23 is PEM or DER
24
26 This function adds the trusted CAs present in the directory in order to
27 verify client or server certificates. This function is identical to
28 gnutls_certificate_set_x509_trust_file() but loads all certificates in
29 a directory.
30
32 the number of certificates processed
33
35 3.3.6
36
38 Report bugs to <bugs@gnutls.org>.
39 Home page: https://www.gnutls.org
40
41
43 Copyright © 2001-2019 Free Software Foundation, Inc., and others.
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 /usr/share/doc/gnutls/ directory does not contain the HTML form
51 visit
52
53 https://www.gnutls.org/manual/
54
55gnutls 3.6g.n1u1tls_certificate_set_x509_trust_dir(3)