1gnutls_pcert_list_import_x509_file(3)gnutlsgnutls_pcert_list_import_x509_file(3)
2
3
4

NAME

6       gnutls_pcert_list_import_x509_file - API function
7

SYNOPSIS

9       #include <gnutls/abstract.h>
10
11       int  gnutls_pcert_list_import_x509_file(gnutls_pcert_st  *  pcert_list,
12       unsigned * pcert_list_size, const char  *  file,  gnutls_x509_crt_fmt_t
13       format,  gnutls_pin_callback_t pin_fn, void * pin_fn_userdata, unsigned
14       int flags);
15

ARGUMENTS

17       gnutls_pcert_st * pcert_list
18                   The structures to store the certificates; must not  contain
19                   initialized gnutls_pcert_st structures.
20
21       unsigned * pcert_list_size
22                   Initially must hold the maximum number of certs. It will be
23                   updated with the number of certs available.
24
25       const char * file
26                   A file or supported URI with the certificates to load
27
28       gnutls_x509_crt_fmt_t format
29                   GNUTLS_X509_FMT_DER or GNUTLS_X509_FMT_PEM  if  a  file  is
30                   given
31
32       gnutls_pin_callback_t pin_fn
33                   a PIN callback if not globally set
34
35       void * pin_fn_userdata
36                   parameter for the PIN callback
37
38       unsigned int flags
39                   zero or flags from gnutls_certificate_import_flags
40

DESCRIPTION

42       This  convenience  function  will  import  a certificate chain from the
43       given file or supported URI to gnutls_pcert_st structures.  The  struc‐
44       tures must be deinitialized afterwards using gnutls_pcert_deinit().
45
46       This function will always return a sorted certificate chain.
47

RETURNS

49       On  success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative er‐
50       ror  value;  if   the    pcert   list   doesn't   have   enough   space
51       GNUTLS_E_SHORT_MEMORY_BUFFER will be returned.
52

SINCE

54       3.6.3
55

REPORTING BUGS

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

SEE ALSO

68       The  full  documentation  for gnutls is maintained as a Texinfo manual.
69       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
70       visit
71
72       https://www.gnutls.org/manual/
73
74gnutls                               3.7.2gnutls_pcert_list_import_x509_file(3)
Impressum