1gnutls_pkcs12_import(3)             gnutls             gnutls_pkcs12_import(3)
2
3
4

NAME

6       gnutls_pkcs12_import  -  This function will import a DER or PEM encoded
7       PKCS12 structure
8

SYNOPSIS

10       #include <gnutls/pkcs12.h>
11
12       int gnutls_pkcs12_import(gnutls_pkcs12_t pkcs12, const gnutls_datum_t *
13       data, gnutls_x509_crt_fmt_t format, unsigned int flags);
14

ARGUMENTS

16       gnutls_pkcs12_t pkcs12
17                   The structure to store the parsed PKCS12.
18
19       const gnutls_datum_t * data
20                   The DER or PEM encoded PKCS12.
21
22       gnutls_x509_crt_fmt_t format
23                   One of DER or PEM
24
25       unsigned int flags
26                   an ORed sequence of gnutls_privkey_pkcs8_flags
27

DESCRIPTION

29       This  function  will convert the given DER or PEM encoded PKCS12 to the
30       native gnutls_pkcs12_t format. The output will be stored in 'pkcs12'.
31
32       If the PKCS12 is PEM encoded it should have a header of "PKCS12".
33

RETURNS

35       On success, GNUTLS_E_SUCCESS is returned, otherwise  a  negative  error
36       value.
37

REPORTING BUGS

39       Report    bugs    to    <bug-gnutls@gnu.org>.     GnuTLS   home   page:
40       http://www.gnu.org/software/gnutls/ General help  using  GNU  software:
41       http://www.gnu.org/gethelp/
42
44       Copyright © 2008 Free Software Foundation.
45       Copying  and  distribution  of this file, with or without modification,
46       are permitted in any medium  without  royalty  provided  the  copyright
47       notice and this notice are preserved.
48

SEE ALSO

50       The  full  documentation  for gnutls is maintained as a Texinfo manual.
51       If the info and gnutls programs are properly installed  at  your  site,
52       the command
53
54              info gnutls
55
56       should give you access to the complete manual.
57
58
59
60gnutls                               2.8.6             gnutls_pkcs12_import(3)
Impressum