1gnutls_pkcs7_import(3) gnutls gnutls_pkcs7_import(3)
2
3
4
6 gnutls_pkcs7_import - This function will import a DER or PEM encoded
7 PKCS7
8
10 #include <gnutls/x509.h>
11
12 int gnutls_pkcs7_import(gnutls_pkcs7_t pkcs7, const gnutls_datum_t *
13 data, gnutls_x509_crt_fmt_t format);
14
16 gnutls_pkcs7_t pkcs7
17 The structure to store the parsed PKCS7.
18
19 const gnutls_datum_t * data
20 The DER or PEM encoded PKCS7.
21
22 gnutls_x509_crt_fmt_t format
23 One of DER or PEM
24
26 This function will convert the given DER or PEM encoded PKCS7 to the
27 native gnutls_pkcs7_t format. The output will be stored in 'pkcs7'.
28
29 If the PKCS7 is PEM encoded it should have a header of "PKCS7".
30
31 Returns 0 on success.
32
34 Report bugs to <bug-gnutls@gnu.org>.
35
37 Copyright © 2006 Free Software Foundation.
38 Permission is granted to make and distribute verbatim copies of this
39 manual provided the copyright notice and this permission notice are
40 preserved on all copies.
41
43 The full documentation for gnutls is maintained as a Texinfo manual.
44 If the info and gnutls programs are properly installed at your site,
45 the command
46
47 info gnutls
48
49 should give you access to the complete manual.
50
51
52
53gnutls 1.6.3 gnutls_pkcs7_import(3)