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  al‐
31       ready  allocated set of gnutls_pcert_st structures. The structures must
32       be deinitialized afterwards  using  gnutls_pcert_deinit().   pcert_list
33       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  re‐
37       turned. Currently sorting can fail if the list size exceeds an internal
38       constraint (16).
39

RETURNS

41       On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative  er‐
42       ror 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- 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  no‐
56       tice 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.7.8    gnutls_pcert_import_x509_list(3)
Impressum