1gnutls_x509_crt_list_import(3)      gnutls      gnutls_x509_crt_list_import(3)
2
3
4

NAME

6       gnutls_x509_crt_list_import  -  This function will import a PEM encoded
7       certificate list
8

SYNOPSIS

10       #include <gnutls/x509.h>
11
12       int gnutls_x509_crt_list_import(gnutls_x509_crt_t * certs, unsigned int
13       *  cert_max, const gnutls_datum_t * data, gnutls_x509_crt_fmt_t format,
14       unsigned int flags);
15

ARGUMENTS

17       gnutls_x509_crt_t * certs
18                   The structures to store the parsed certificate. Must not be
19                   initialized.
20
21       unsigned int * cert_max
22                   Initially must hold the maximum number of certs. It will be
23                   updated with the number of certs available.
24
25       const gnutls_datum_t * data
26                   The PEM encoded certificate.
27
28       gnutls_x509_crt_fmt_t format
29                   One of DER or PEM.
30
31       unsigned int flags
32                   must  be  zero  or  an  OR'd  sequence  of  gnutls_certifi‐
33                   cate_import_flags.
34

DESCRIPTION

36       This  function  will  convert the given PEM encoded certificate list to
37       the native gnutls_x509_crt_t format.  The  output  will  be  stored  in
38       certs.  They will be automatically initialized.
39
40       If the Certificate is PEM encoded it should have a header of "X509 CER‐
41       TIFICATE", or "CERTIFICATE".
42

RETURNS

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

REPORTING BUGS

47       Report   bugs   to    <bug-gnutls@gnu.org>.     GnuTLS    home    page:
48       http://www.gnu.org/software/gnutls/  General  help  using GNU software:
49       http://www.gnu.org/gethelp/
50
52       Copyright © 2008 Free Software Foundation.
53       Copying and distribution of this file, with  or  without  modification,
54       are  permitted  in  any  medium  without royalty provided the copyright
55       notice and this notice are preserved.
56

SEE ALSO

58       The full documentation for gnutls is maintained as  a  Texinfo  manual.
59       If  the  info  and gnutls programs are properly installed at your site,
60       the command
61
62              info gnutls
63
64       should give you access to the complete manual.
65
66
67
68gnutls                               2.8.6      gnutls_x509_crt_list_import(3)
Impressum