1gnutls_certificate_set_x509_trust_memg(n3ug)tnlustls_certificate_set_x509_trust_mem(3)
2
3
4

NAME

6       gnutls_certificate_set_x509_trust_mem  -  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_mem(gnutls_certificate_creden‐
13       tials_t                 res,     const     gnutls_datum_t     *     ca,
14       gnutls_x509_crt_fmt_t type);
15

ARGUMENTS

17       gnutls_certificate_credentials_t            res
18                   is an gnutls_certificate_credentials_t structure.
19
20       const gnutls_datum_t * ca
21                   is a list of trusted CAs or a DER certificate
22
23       gnutls_x509_crt_fmt_t type
24                   is DER or PEM
25

DESCRIPTION

27       This function adds the trusted CAs in order to verify client or  server
28       certificates.  In case of a client this is not required to be called if
29       the  certificates  are  not  verified   using   gnutls_certificate_ver‐
30       ify_peers2().  This function may be called multiple times.
31
32       In  case  of  a server the CAs set here will be sent to the client if a
33       certificate request is sent. This can be disabled using gnutls_certifi‐
34       cate_send_x509_rdn_sequence().
35
36       Returns  the  number  of  certificates processed or a negative value on
37       error.
38

REPORTING BUGS

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

SEE ALSO

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