1 .\" DO NOT MODIFY THIS FILE! It was generated by gdoc.
2 .TH "gnutls_pkcs12_export" 3 "2.12.6.1" "gnutls" "gnutls"
4 gnutls_pkcs12_export \- API function
6 .B #include <gnutls/pkcs12.h>
8 .BI "int gnutls_pkcs12_export(gnutls_pkcs12_t " pkcs12 ", gnutls_x509_crt_fmt_t " format ", void * " output_data ", size_t * " output_data_size ");"
10 .IP "gnutls_pkcs12_t pkcs12" 12
11 Holds the pkcs12 structure
12 .IP "gnutls_x509_crt_fmt_t format" 12
13 the format of output params. One of PEM or DER.
14 .IP "void * output_data" 12
15 will contain a structure PEM or DER encoded
16 .IP "size_t * output_data_size" 12
17 holds the size of output_data (and will be
18 replaced by the actual size of parameters)
20 This function will export the pkcs12 structure to DER or PEM format.
22 If the buffer provided is not long enough to hold the output, then
23 *output_data_size will be updated and GNUTLS_E_SHORT_MEMORY_BUFFER
26 If the structure is PEM encoded, it will have a header
29 In case of failure a negative value will be
30 returned, and 0 on success.
32 Report bugs to <bug-gnutls@gnu.org>.
33 GnuTLS home page: http://www.gnu.org/software/gnutls/
34 General help using GNU software: http://www.gnu.org/gethelp/
36 Copyright \(co 2008 Free Software Foundation.
38 Copying and distribution of this file, with or without modification,
39 are permitted in any medium without royalty provided the copyright
40 notice and this notice are preserved.
42 The full documentation for
44 is maintained as a Texinfo manual. If the
48 programs are properly installed at your site, the command
52 should give you access to the complete manual.