Blame doc/functions/gnutls_pkcs12_export

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {int} {gnutls_pkcs12_export} (gnutls_pkcs12_t @var{pkcs12}, gnutls_x509_crt_fmt_t @var{format}, void * @var{output_data}, size_t * @var{output_data_size})
Packit aea12f
@var{pkcs12}: A pkcs12 type
Packit aea12f
Packit aea12f
@var{format}: the format of output params. One of PEM or DER.
Packit aea12f
Packit aea12f
@var{output_data}: will contain a structure PEM or DER encoded
Packit aea12f
Packit aea12f
@var{output_data_size}: holds the size of output_data (and will be
Packit aea12f
replaced by the actual size of parameters)
Packit aea12f
Packit aea12f
This function will export the pkcs12 structure to DER or PEM format.
Packit aea12f
Packit aea12f
If the buffer provided is not long enough to hold the output, then
Packit aea12f
*output_data_size will be updated and GNUTLS_E_SHORT_MEMORY_BUFFER
Packit aea12f
will be returned.
Packit aea12f
Packit aea12f
If the structure is PEM encoded, it will have a header
Packit aea12f
of "BEGIN PKCS12".
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
@end deftypefun