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 - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int    gnutls_certificate_set_x509_trust_mem(gnutls_certificate_creden‐
12       tials_t res, const gnutls_datum_t * ca, gnutls_x509_crt_fmt_t type);
13

ARGUMENTS

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

REPORTING BUGS

38       Report bugs to <bugs@gnutls.org>.
39       Home page: http://www.gnutls.org
40
41
43       Copyright © 2001-2018 Free Software Foundation, Inc., and others.
44       Copying  and  distribution  of this file, with or without modification,
45       are permitted in any medium  without  royalty  provided  the  copyright
46       notice and this notice are preserved.
47

SEE ALSO

49       The  full  documentation  for gnutls is maintained as a Texinfo manual.
50       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
51       visit
52
53       http://www.gnutls.org/manual/
54
55gnutls                               3.g6n.u5tls_certificate_set_x509_trust_mem(3)
Impressum