1gnutls_x509_trust_list_add_trust_fileg(n3ug)tnlustls_x509_trust_list_add_trust_file(3)
2
3
4

NAME

6       gnutls_x509_trust_list_add_trust_file - API function
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int      gnutls_x509_trust_list_add_trust_file(gnutls_x509_trust_list_t
12       list,   const   char   *    ca_file,    const    char    *    crl_file,
13       gnutls_x509_crt_fmt_t   type,   unsigned  int  tl_flags,  unsigned  int
14       tl_vflags);
15

ARGUMENTS

17       gnutls_x509_trust_list_t list
18                   The list
19
20       const char * ca_file
21                   A file containing a list of CAs (optional)
22
23       const char * crl_file
24                   A file containing a list of CRLs (optional)
25
26       gnutls_x509_crt_fmt_t type
27                   The format of the certificates
28
29       unsigned int tl_flags
30                   flags from gnutls_trust_list_flags_t
31
32       unsigned int tl_vflags
33                   gnutls_certificate_verify_flags    if    flags    specifies
34                   GNUTLS_TL_VERIFY_CRL
35

DESCRIPTION

37       This function will add the given certificate authorities to the trusted
38       list. PKCS 11 URLs are also accepted, instead of files, by  this  func‐
39       tion. A PKCS 11 URL implies a trust database (a specially marked module
40       in p11-kit); the URL "pkcs11:" implies all trust databases in the  sys‐
41       tem. Only a single URL specifying trust databases can be set; they can‐
42       not be stacked with multiple calls.
43

RETURNS

45       The number of added elements is returned.
46

SINCE

48       3.1
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.g6n.u5tls_x509_trust_list_add_trust_file(3)
Impressum