Debian Codegraph @

doc/functions/gnutls_pkcs12_export

raw
1
2
3
4
5 @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})
6 @var{pkcs12}: A pkcs12 type
7
8 @var{format}: the format of output params. One of PEM or DER.
9
10 @var{output_data}: will contain a structure PEM or DER encoded
11
12 @var{output_data_size}: holds the size of output_data (and will be
13 replaced by the actual size of parameters)
14
15 This function will export the pkcs12 structure to DER or PEM format.
16
17 If the buffer provided is not long enough to hold the output, then
18 *output_data_size will be updated and GNUTLS_E_SHORT_MEMORY_BUFFER
19 will be returned.
20
21 If the structure is PEM encoded, it will have a header
22 of "BEGIN PKCS12".
23
24 @strong{Returns:} In case of failure a negative error code will be
25 returned, and 0 on success.
26 @end deftypefun