1gnutls_certificate_set_x509_trust_filgeng(un3tu)ltsls_certificate_set_x509_trust_file(3)
2
3
4

NAME

6       gnutls_certificate_set_x509_trust_file  -  Used to add trusted CAs in a
7       gnutls_certificate_credentials_t structure
8

SYNOPSIS

10       #include <gnutls/gnutls.h>
11
12       int   gnutls_certificate_set_x509_trust_file(gnutls_certificate_creden‐
13       tials_t      res, const char * cafile, gnutls_x509_crt_fmt_t type);
14

ARGUMENTS

16       gnutls_certificate_credentials_t      res
17                   is an gnutls_certificate_credentials_t structure.
18
19       const char * cafile
20                   is  a  file  containing the list of trusted CAs (DER or PEM
21                   list)
22
23       gnutls_x509_crt_fmt_t type
24                   is PEM or DER
25

DESCRIPTION

27       This function adds the trusted CAs in order to verify client or  server
28       certificates.  In case of a client this is not required to be called if
29       the  certificates  are  not  verified   using   gnutls_certificate_ver‐
30       ify_peers2().  This function may be called multiple times.
31
32       In  case  of a server the names of the CAs set here will be sent to the
33       client if a certificate request is sent. This  can  be  disabled  using
34       gnutls_certificate_send_x509_rdn_sequence().
35
36       Returns  the  number  of  certificates processed or a negative value on
37       error.
38

REPORTING BUGS

40       Report bugs to <bug-gnutls@gnu.org>.
41
43       Copyright © 2006 Free Software Foundation.
44       Permission is granted to make and distribute verbatim  copies  of  this
45       manual  provided  the  copyright  notice and this permission notice are
46       preserved on all copies.
47

SEE ALSO

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                               1g.n6u.t3ls_certificate_set_x509_trust_file(3)
Impressum