1gnutls_pkcs12_import(3) gnutls gnutls_pkcs12_import(3)
2
3
4
6 gnutls_pkcs12_import - API function
7
9 #include <gnutls/pkcs12.h>
10
11 int gnutls_pkcs12_import(gnutls_pkcs12_t pkcs12, const gnutls_datum_t *
12 data, gnutls_x509_crt_fmt_t format, unsigned int flags);
13
15 gnutls_pkcs12_t pkcs12
16 The structure to store the parsed PKCS12.
17
18 const gnutls_datum_t * data
19 The DER or PEM encoded PKCS12.
20
21 gnutls_x509_crt_fmt_t format
22 One of DER or PEM
23
24 unsigned int flags
25 an ORed sequence of gnutls_privkey_pkcs8_flags
26
28 This function will convert the given DER or PEM encoded PKCS12 to the
29 native gnutls_pkcs12_t format. The output will be stored in 'pkcs12'.
30
31 If the PKCS12 is PEM encoded it should have a header of "PKCS12".
32
34 On success, GNUTLS_E_SUCCESS is returned, otherwise a negative error
35 value.
36
38 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
39 http://www.gnu.org/software/gnutls/ General help using GNU software:
40 http://www.gnu.org/gethelp/
41
43 Copyright © 2008 Free Software Foundation.
44 Copying and distribution of this file, with or without modification,
45 are permitted in any medium without royalty provided the copyright
46 notice and this notice are preserved.
47
49 The full documentation for gnutls is maintained as a Texinfo manual.
50 If the info and gnutls programs are properly installed at your site,
51 the command
52
53 info gnutls
54
55 should give you access to the complete manual.
56
57
58
59gnutls 2.12.6.1 gnutls_pkcs12_import(3)