@deftypefun {int} {gnutls_pcert_list_import_x509_raw} (gnutls_pcert_st * @var{pcert_list}, unsigned int * @var{pcert_list_size}, const gnutls_datum_t * @var{data}, gnutls_x509_crt_fmt_t @var{format}, unsigned int @var{flags})
@var{pcert_list}: The structures to store the certificates; must not contain initialized @code{gnutls_pcert_st} structures.
@var{pcert_list_size}: Initially must hold the maximum number of certs. It will be updated with the number of certs available.
@var{data}: The certificates.
@var{format}: One of DER or PEM.
@var{flags}: must be (0) or an OR'd sequence of gnutls_certificate_import_flags.
This function will import the provided DER or PEM encoded certificates to an
already allocated set of @code{gnutls_pcert_st} structures. The structures must
be deinitialized afterwards using @code{gnutls_pcert_deinit()} . @code{pcert_list} should contain space for at least @code{pcert_list_size} elements.
If the Certificate is PEM encoded it should have a header of "X509
CERTIFICATE", or "CERTIFICATE".
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
negative error value; if the @code{pcert} list doesn't have enough space
@code{GNUTLS_E_SHORT_MEMORY_BUFFER} will be returned.
@strong{Since:} 3.0
@end deftypefun