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

NAME

6       gnutls_certificate_set_x509_trust - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int  gnutls_certificate_set_x509_trust(gnutls_certificate_credentials_t
12       res, gnutls_x509_crt_t * ca_list, int ca_list_size);
13

ARGUMENTS

15       gnutls_certificate_credentials_t res
16                   is a gnutls_certificate_credentials_t structure.
17
18       gnutls_x509_crt_t * ca_list
19                   is a list of trusted CAs
20
21       int ca_list_size
22                   holds the size of the CA list
23

DESCRIPTION

25       This function adds the trusted CAs in order to verify client or  server
26       certificates.  In case of a client this is not required to be called if
27       the  certificates  are  not  verified   using   gnutls_certificate_ver‐
28       ify_peers2().  This function may be called multiple times.
29
30       In  case  of  a server the CAs set here will be sent to the client if a
31       certificate request is sent. This can be disabled using gnutls_certifi‐
32       cate_send_x509_rdn_sequence().
33

RETURNS

35       GNUTLS_E_SUCCESS on success, or an error code.
36

SINCE

38       2.4.0
39

REPORTING BUGS

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

SEE ALSO

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