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, gnutls_x509_crt_fmt_t type);
14

ARGUMENTS

16       gnutls_certificate_credentials_t res
17                   is a gnutls_certificate_credentials_t structure.
18
19       const gnutls_datum_t * ca
20                   is a list of trusted CAs or a DER certificate
21
22       gnutls_x509_crt_fmt_t type
23                   is DER or PEM
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

RETURNS

36       the number of certificates processed or a negative value on error.
37

REPORTING BUGS

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

SEE ALSO

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