1gnutls_pcert_import_x509_list(3)    gnutls    gnutls_pcert_import_x509_list(3)
2
3
4

NAME

6       gnutls_pcert_import_x509_list - API function
7

SYNOPSIS

9       #include <gnutls/abstract.h>
10
11       int    gnutls_pcert_import_x509_list(gnutls_pcert_st    *   pcert_list,
12       gnutls_x509_crt_t * crt, unsigned * ncrt, unsigned int flags);
13

ARGUMENTS

15       gnutls_pcert_st * pcert_list
16                   The structures to store the certificates; must not  contain
17                   initialized gnutls_pcert_st structures.
18
19       gnutls_x509_crt_t * crt
20                   The certificates to be imported
21
22       unsigned * ncrt
23                   The  number  of  certificates  in  crt ; will be updated if
24                   necessary
25
26       unsigned int flags
27                   zero or GNUTLS_X509_CRT_LIST_SORT
28

DESCRIPTION

30       This convenience function will import  the  given  certificates  to  an
31       already  allocated  set  of  gnutls_pcert_st structures. The structures
32       must   be   deinitialized   afterwards   using   gnutls_pcert_deinit().
33       pcert_list should contain space for at least  ncrt elements.
34
35       In  the  case  GNUTLS_X509_CRT_LIST_SORT is specified and that function
36       cannot  sort  the  list,  GNUTLS_E_CERTIFICATE_LIST_UNSORTED  will   be
37       returned. Currently sorting can fail if the list size exceeds an inter‐
38       nal constraint (16).
39

RETURNS

41       On success, GNUTLS_E_SUCCESS (0)  is  returned,  otherwise  a  negative
42       error value.
43

SINCE

45       3.4.0
46

REPORTING BUGS

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

SEE ALSO

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