



@deftypefun {int} {gnutls_x509_trust_list_add_cas} (gnutls_x509_trust_list_t @var{list}, const gnutls_x509_crt_t * @var{clist}, unsigned @var{clist_size}, unsigned int @var{flags})
@var{list}: The list

@var{clist}: A list of CAs

@var{clist_size}: The length of the CA list

@var{flags}: should be 0 or an or'ed sequence of @code{GNUTLS_TL}  options.

This function will add the given certificate authorities
to the trusted list. The list of CAs must not be deinitialized
during this structure's lifetime.

If the flag @code{GNUTLS_TL_NO_DUPLICATES}  is specified, then
the provided  @code{clist} entries that are duplicates will not be
added to the list and will be deinitialized.

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

@strong{Since:} 3.0.0
@end deftypefun
