1gnutls_pcert_list_import_x509_raw(3)gnutlsgnutls_pcert_list_import_x509_raw(3)
2
3
4
6 gnutls_pcert_list_import_x509_raw - API function
7
9 #include <gnutls/abstract.h>
10
11 int gnutls_pcert_list_import_x509_raw(gnutls_pcert_st * pcert_list, un‐
12 signed int * pcert_list_size, const gnutls_datum_t * data,
13 gnutls_x509_crt_fmt_t format, unsigned int flags);
14
16 gnutls_pcert_st * pcert_list
17 The structures to store the certificates; must not contain
18 initialized gnutls_pcert_st structures.
19
20 unsigned int * pcert_list_size
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 certificates.
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
35 This function will import the provided DER or PEM encoded certificates
36 to an already allocated set of gnutls_pcert_st structures. The struc‐
37 tures must be deinitialized afterwards using gnutls_pcert_deinit().
38 pcert_list should contain space for at least pcert_list_size elements.
39
40 If the Certificate is PEM encoded it should have a header of "X509 CER‐
41 TIFICATE", or "CERTIFICATE".
42
44 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative er‐
45 ror value; if the pcert list doesn't have enough space
46 GNUTLS_E_SHORT_MEMORY_BUFFER will be returned.
47
49 3.0
50
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
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.8gnutls_pcert_list_import_x509_raw(3)