Blame doc/functions/gnutls_pcert_list_import_x509_raw

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