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

NAME

6       gnutls_x509_crt_list_import - API function
7

SYNOPSIS

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

ARGUMENTS

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

DESCRIPTION

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

RETURNS

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

REPORTING BUGS

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

SEE ALSO

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