1gnutls_certificate_set_x509_trust(3)gnutlsgnutls_certificate_set_x509_trust(3)
2
3
4

NAME

6       gnutls_certificate_set_x509_trust  -  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(gnutls_certificate_credentials_t
13       res, gnutls_x509_crt_t * ca_list, int ca_list_size);
14

ARGUMENTS

16       gnutls_certificate_credentials_t res
17                   is an gnutls_certificate_credentials_t structure.
18
19       gnutls_x509_crt_t * ca_list
20                   is a list of trusted CAs
21
22       int ca_list_size
23                   holds the size of the CA list
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 CAs set here will be sent to the  client  if  a
32       certificate request is sent. This can be disabled using gnutls_certifi‐
33       cate_send_x509_rdn_sequence().
34
35       Returns 0 on success.
36

REPORTING BUGS

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

SEE ALSO

47       The full documentation for gnutls is maintained as  a  Texinfo  manual.
48       If  the  info  and gnutls programs are properly installed at your site,
49       the command
50
51              info gnutls
52
53       should give you access to the complete manual.
54
55
56
57gnutls                               1.6.3gnutls_certificate_set_x509_trust(3)
Impressum