1gnutls_x509_crt_list_import2(3) gnutls gnutls_x509_crt_list_import2(3)
2
3
4
6 gnutls_x509_crt_list_import2 - API function
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_crt_list_import2(gnutls_x509_crt_t ** certs, unsigned
12 int * size, const gnutls_datum_t * data, gnutls_x509_crt_fmt_t format,
13 unsigned int flags);
14
16 gnutls_x509_crt_t ** certs
17 The structures to store the parsed certificate. Must not be
18 initialized.
19
20 unsigned int * size
21 It will contain the size of the list.
22
23 const gnutls_datum_t * data
24 The PEM encoded certificate.
25
26 gnutls_x509_crt_fmt_t format
27 One of DER or PEM.
28
29 unsigned int flags
30 must be (0) or an OR'd sequence of gnutls_certifi‐
31 cate_import_flags.
32
34 This function will convert the given PEM encoded certificate list to
35 the native gnutls_x509_crt_t format. The output will be stored in
36 certs which will allocated and initialized.
37
38 If the Certificate is PEM encoded it should have a header of "X509 CER‐
39 TIFICATE", or "CERTIFICATE".
40
41 To deinitialize certs , you need to deinitialize each crt structure
42 independently, and use gnutls_free() at
43
45 the number of certificates read or a negative error value.
46
48 3.0
49
51 Report bugs to <bugs@gnutls.org>.
52 Home page: http://www.gnutls.org
53
54
56 Copyright © 2001-2014 Free Software Foundation, Inc..
57 Copying and distribution of this file, with or without modification,
58 are permitted in any medium without royalty provided the copyright
59 notice and this notice are preserved.
60
62 The full documentation for gnutls is maintained as a Texinfo manual.
63 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
64 visit
65
66 http://www.gnutls.org/manual/
67
68gnutls 3.3.29 gnutls_x509_crt_list_import2(3)