File: gnutls_x509_trust_list_add_trust_dir

package info (click to toggle)
gnutls28 3.3.8-6
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 51,388 kB
  • sloc: ansic: 191,357; asm: 60,370; sh: 21,457; makefile: 5,257; lisp: 1,531; yacc: 1,254; cpp: 1,155; perl: 199; sed: 16
file content (25 lines) | stat: -rw-r--r-- 797 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25




@deftypefun {int} {gnutls_x509_trust_list_add_trust_dir} (gnutls_x509_trust_list_t @var{list}, const char * @var{ca_dir}, const char * @var{crl_dir}, gnutls_x509_crt_fmt_t @var{type}, unsigned int @var{tl_flags}, unsigned int @var{tl_vflags})
@var{list}: The structure of the list

@var{ca_dir}: A directory containing the CAs (optional)

@var{crl_dir}: A directory containing a list of CRLs (optional)

@var{type}: The format of the certificates

@var{tl_flags}: GNUTLS_TL_*

@var{tl_vflags}: gnutls_certificate_verify_flags if flags specifies GNUTLS_TL_VERIFY_CRL

This function will add the given certificate authorities
to the trusted list. Only directories are accepted by
this function.

@strong{Returns:} The number of added elements is returned.

@strong{Since:} 3.3.6
@end deftypefun