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 res, const char * cafile, gnutls_x509_crt_fmt_t type);
13

ARGUMENTS

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

DESCRIPTION

26       This  function adds the trusted CAs in order to verify client or server
27       certificates. In case of a client this is not required to be called  if
28       the   certificates   are  not  verified  using  gnutls_certificate_ver‐
29       ify_peers2().  This function may be called multiple times.
30
31       In case of a server the names of the CAs set here will be sent  to  the
32       client  if  a  certificate  request is sent. This can be disabled using
33       gnutls_certificate_send_x509_rdn_sequence().
34
35       This function can also accept PKCS 11 URLs. In that case it will import
36       all certificates that are marked as trusted.
37

RETURNS

39       number of certificates processed, or a negative value on error.
40

REPORTING BUGS

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

SEE ALSO

53       The  full  documentation  for gnutls is maintained as a Texinfo manual.
54       If the info and gnutls programs are properly installed  at  your  site,
55       the command
56
57              info gnutls
58
59       should give you access to the complete manual.
60
61
62
63gnutls                             2.1g2n.u6t.l1s_certificate_set_x509_trust_file(3)
Impressum