



@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 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}: flags from @code{gnutls_trust_list_flags_t} 

@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. 

If this function is used @code{gnutls_x509_trust_list_deinit()}  must be called
with parameter  @code{all} being 1.

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

@strong{Since:} 3.1
@end deftypefun
