Blame doc/functions/gnutls_x509_crt_export2

Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
@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 Service 4684c1
@var{cert}: Holds the certificate
Packit Service 4684c1
Packit Service 4684c1
@var{format}: the format of output params. One of PEM or DER.
Packit Service 4684c1
Packit Service 4684c1
@var{out}: will contain a certificate PEM or DER encoded
Packit Service 4684c1
Packit Service 4684c1
This function will export the certificate to DER or PEM format.
Packit Service 4684c1
The output buffer is allocated using @code{gnutls_malloc()} .
Packit Service 4684c1
Packit Service 4684c1
If the structure is PEM encoded, it will have a header
Packit Service 4684c1
of "BEGIN CERTIFICATE".
Packit Service 4684c1
Packit Service 4684c1
@strong{Returns:} In case of failure a negative error code will be
Packit Service 4684c1
returned, and 0 on success.
Packit Service 4684c1
Packit Service 4684c1
@strong{Since:} 3.1.3
Packit Service 4684c1
@end deftypefun