1gnutls_x509_crt_list_import2(3)     gnutls     gnutls_x509_crt_list_import2(3)
2
3
4

NAME

6       gnutls_x509_crt_list_import2 - API function
7

SYNOPSIS

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

ARGUMENTS

16       gnutls_x509_crt_t ** certs
17                   Will hold the parsed certificate list.
18
19       unsigned int * size
20                   It will contain the size of the list.
21
22       const gnutls_datum_t * data
23                   The PEM encoded certificate.
24
25       gnutls_x509_crt_fmt_t format
26                   One of DER or PEM.
27
28       unsigned int flags
29                   must   be  (0)  or  an  OR'd  sequence  of  gnutls_certifi‐
30                   cate_import_flags.
31

DESCRIPTION

33       This function will convert the given PEM encoded  certificate  list  to
34       the  native  gnutls_x509_crt_t  format.  The  output  will be stored in
35       certs which will be allocated and initialized.
36
37       If the Certificate is PEM encoded it should have a header of "X509 CER‐
38       TIFICATE", or "CERTIFICATE".
39
40       To  deinitialize   certs  , you need to deinitialize each crt structure
41       independently, and use gnutls_free() at  certs .
42

RETURNS

44       the number of certificates read or a negative error value.
45

SINCE

47       3.0
48

REPORTING BUGS

50       Report bugs to <bugs@gnutls.org>.
51       Home page: https://www.gnutls.org
52
53
55       Copyright © 2001-2019 Free Software Foundation, Inc., and others.
56       Copying and distribution of this file, with  or  without  modification,
57       are  permitted  in  any  medium  without royalty provided the copyright
58       notice and this notice are preserved.
59

SEE ALSO

61       The full documentation for gnutls is maintained as  a  Texinfo  manual.
62       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
63       visit
64
65       https://www.gnutls.org/manual/
66
67gnutls                               3.6.8     gnutls_x509_crt_list_import2(3)
Impressum