1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
@deftypefun {int} {gnutls_x509_trust_list_add_trust_mem} (gnutls_x509_trust_list_t @var{list}, const gnutls_datum_t * @var{cas}, const gnutls_datum_t * @var{crls}, 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{cas}: A buffer containing a list of CAs (optional)
@var{crls}: A buffer 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.
@strong{Returns:} The number of added elements is returned.
@strong{Since:} 3.1
@end deftypefun
|