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 type.
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       the number of certificates processed or a negative error code on error.
36

SINCE

38       2.4.0
39

REPORTING BUGS

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

SEE ALSO

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