1gnutls_x509_trust_list_iter_get_ca(3)gnutlsgnutls_x509_trust_list_iter_get_ca(3)
2
3
4
6 gnutls_x509_trust_list_iter_get_ca - API function
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_trust_list_iter_get_ca(gnutls_x509_trust_list_t list,
12 gnutls_x509_trust_list_iter_t * iter, gnutls_x509_crt_t * crt);
13
15 gnutls_x509_trust_list_t list
16 The list
17
18 gnutls_x509_trust_list_iter_t * iter
19 A pointer to an iterator (initially the iterator should be
20 NULL)
21
22 gnutls_x509_crt_t * crt
23 where the certificate will be copied
24
26 This function obtains a certificate in the trust list and advances the
27 iterator to the next certificate. The certificate returned in crt must
28 be deallocated with gnutls_x509_crt_deinit().
29
30 When past the last element is accessed
31 GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE is returned and the iterator is
32 reset.
33
34 The iterator is deinitialized and reset to NULL automatically by this
35 function after iterating through all elements until
36 GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE is returned. If the iteration is
37 aborted early, it must be manually deinitialized using
38 gnutls_x509_trust_list_iter_deinit().
39
41 On success, GNUTLS_E_SUCCESS [22m(0) is returned, otherwise a negative
42 error value.
43
45 3.4.0
46
48 Report bugs to <bugs@gnutls.org>.
49 Home page: http://www.gnutls.org
50
51
53 Copyright © 2001-2018 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
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 http://www.gnutls.org/manual/
64
65gnutls 3.6.5gnutls_x509_trust_list_iter_get_ca(3)