Blame doc/functions/gnutls_pcert_list_import_x509_raw

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