



@deftypefun {int} {xssl_cred_init} (xssl_cred_t * @var{c}, unsigned @var{vflags}, gnutls_cinput_st * @var{aux}, unsigned @var{aux_size})
@var{c}: is a pointer to @code{xssl_cred_t}  structure.

@var{vflags}: the requested peer verification methods

@var{aux}: Auxilary data to input any required CA certificate etc.

@var{aux_size}: the number of the auxillary data provided

This function initializes X.509 certificates in 
a @code{xssl_cred_t}  structure.

The  @code{ca_file} and  @code{crl_file} are required only if  @code{vflags} includes
@code{GNUTLS_VMETHOD_GIVEN_CAS} . The  @code{tofu_file} may be set if 
@code{GNUTLS_VMETHOD_TOFU}  is specified.

@strong{Returns:} @code{GNUTLS_E_SUCCESS}  on success, or an error code.

@strong{Since:} 3.1.7
@end deftypefun
