1gnutls_x509_trust_list_add_cas(3)   gnutls   gnutls_x509_trust_list_add_cas(3)
2
3
4

NAME

6       gnutls_x509_trust_list_add_cas - API function
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int gnutls_x509_trust_list_add_cas(gnutls_x509_trust_list_t list, const
12       gnutls_x509_crt_t * clist, unsigned clist_size, unsigned int flags);
13

ARGUMENTS

15       gnutls_x509_trust_list_t list
16                   The list
17
18       const gnutls_x509_crt_t * clist
19                   A list of CAs
20
21       unsigned clist_size
22                   The length of the CA list
23
24       unsigned int flags
25                   flags from gnutls_trust_list_flags_t
26

DESCRIPTION

28       This function will add the given certificate authorities to the trusted
29       list.  The  CAs in  clist must not be deinitialized during the lifetime
30       of  list .
31
32       If the flag GNUTLS_TL_NO_DUPLICATES is specified,  then  this  function
33       will ensure that no duplicates will be present in the final trust list.
34
35       If the flag GNUTLS_TL_NO_DUPLICATE_KEY is specified, then this function
36       will ensure that no certificates with the same key are present  in  the
37       final trust list.
38
39       If  either  GNUTLS_TL_NO_DUPLICATE_KEY  or  GNUTLS_TL_NO_DUPLICATES are
40       given, gnutls_x509_trust_list_deinit() must be called with parameter
41        all being 1.
42

RETURNS

44       The number of added  elements  is  returned;  that  includes  duplicate
45       entries.
46

SINCE

48       3.0.0
49

REPORTING BUGS

51       Report bugs to <bugs@gnutls.org>.
52       Home page: http://www.gnutls.org
53
54
56       Copyright © 2001-2018 Free Software Foundation, Inc., and others.
57       Copying  and  distribution  of this file, with or without modification,
58       are permitted in any medium  without  royalty  provided  the  copyright
59       notice and this notice are preserved.
60

SEE ALSO

62       The  full  documentation  for gnutls is maintained as a Texinfo manual.
63       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
64       visit
65
66       http://www.gnutls.org/manual/
67
68gnutls                               3.6.5   gnutls_x509_trust_list_add_cas(3)
Impressum