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 - API function
7

SYNOPSIS

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

ARGUMENTS

16       gnutls_certificate_credentials_t            cred
17                   is a gnutls_certificate_credentials_t type.
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       This  function  can  also  accept URLs. In that case it will import all
37       certificates that are marked as trusted. Note that the  supported  URLs
38       are the ones indicated by gnutls_url_is_supported().
39

RETURNS

41       the number of certificates processed
42

REPORTING BUGS

44       Report bugs to <bugs@gnutls.org>.
45       Home page: https://www.gnutls.org
46
47
49       Copyright © 2001-2020 Free Software Foundation, Inc., and others.
50       Copying  and  distribution  of this file, with or without modification,
51       are permitted in any medium  without  royalty  provided  the  copyright
52       notice and this notice are preserved.
53

SEE ALSO

55       The  full  documentation  for gnutls is maintained as a Texinfo manual.
56       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
57       visit
58
59       https://www.gnutls.org/manual/
60
61gnutls                              3.g6n.u1t3ls_certificate_set_x509_trust_file(3)
Impressum