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 type);
13

ARGUMENTS

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

RETURNS

40       the number of certificates processed
41

REPORTING BUGS

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

SEE ALSO

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