Blame doc/functions/gnutls_x509_crt_export2

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {int} {gnutls_x509_crt_export2} (gnutls_x509_crt_t @var{cert}, gnutls_x509_crt_fmt_t @var{format}, gnutls_datum_t * @var{out})
Packit aea12f
@var{cert}: Holds the certificate
Packit aea12f
Packit aea12f
@var{format}: the format of output params. One of PEM or DER.
Packit aea12f
Packit aea12f
@var{out}: will contain a certificate PEM or DER encoded
Packit aea12f
Packit aea12f
This function will export the certificate to DER or PEM format.
Packit aea12f
The output buffer is allocated using @code{gnutls_malloc()} .
Packit aea12f
Packit aea12f
If the structure is PEM encoded, it will have a header
Packit aea12f
of "BEGIN CERTIFICATE".
Packit aea12f
Packit aea12f
@strong{Returns:} In case of failure a negative error code will be
Packit aea12f
returned, and 0 on success.
Packit aea12f
Packit aea12f
@strong{Since:} 3.1.3
Packit aea12f
@end deftypefun