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
43       Returns the number of certificates read or a negative error value.
44

REPORTING BUGS

46       Report bugs to <bug-gnutls@gnu.org>.
47
49       Copyright © 2006 Free Software Foundation.
50       Permission is granted to make and distribute verbatim  copies  of  this
51       manual  provided  the  copyright  notice and this permission notice are
52       preserved on all copies.
53

SEE ALSO

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