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                   Indicates where the parsed list will be copied to. Must not
18                   be 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  (0) or an OR'd sequence of gnutls_certificate_im‐
32                   port_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       The flag GNUTLS_X509_CRT_LIST_IMPORT_FAIL_IF_EXCEED will  cause  import
40       to  fail  if  the certificates in the provided buffer are more than the
41       available structures.  The  GNUTLS_X509_CRT_LIST_FAIL_IF_UNSORTED  flag
42       will cause the function to fail if the provided list is not sorted from
43       subject to issuer.
44
45       If the Certificate is PEM encoded it should have a header of "X509 CER‐
46       TIFICATE", or "CERTIFICATE".
47

RETURNS

49       the number of certificates read or a negative error value.
50

REPORTING BUGS

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

SEE ALSO

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