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 a 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

RETURNS

37       number of certificates processed, or a negative value on error.
38

REPORTING BUGS

40       Report    bugs    to    <bug-gnutls@gnu.org>.     GnuTLS   home   page:
41       http://www.gnu.org/software/gnutls/ General help  using  GNU  software:
42       http://www.gnu.org/gethelp/
43
45       Copyright © 2008 Free Software Foundation.
46       Copying  and  distribution  of this file, with or without modification,
47       are permitted in any medium  without  royalty  provided  the  copyright
48       notice and this notice are preserved.
49

SEE ALSO

51       The  full  documentation  for gnutls is maintained as a Texinfo manual.
52       If the info and gnutls programs are properly installed  at  your  site,
53       the command
54
55              info gnutls
56
57       should give you access to the complete manual.
58
59
60
61gnutls                               2g.n8u.t6ls_certificate_set_x509_trust_file(3)
Impressum