1gnutls_system_key_iter_get_info(3) gnutls gnutls_system_key_iter_get_info(3)
2
3
4
6 gnutls_system_key_iter_get_info - API function
7
9 #include <gnutls/system-keys.h>
10
11 int gnutls_system_key_iter_get_info(gnutls_system_key_iter_t * iter,
12 unsigned cert_type, char ** cert_url, char ** key_url, char ** label,
13 gnutls_datum_t * der, unsigned int flags);
14
16 gnutls_system_key_iter_t * iter
17 an iterator of the system keys (must be set to NULL ini‐
18 tially)
19
20 unsigned cert_type
21 A value of gnutls_certificate_type_t which indicates the
22 type of certificate to look for
23
24 char ** cert_url
25 The certificate URL of the pair (may be NULL)
26
27 char ** key_url
28 The key URL of the pair (may be NULL)
29
30 char ** label
31 The friendly name (if any) of the pair (may be NULL)
32
33 gnutls_datum_t * der
34 if non-NULL the DER data of the certificate
35
36 unsigned int flags
37 should be zero
38
40 This function will return on each call a certificate and key pair URLs,
41 as well as a label associated with them, and the DER-encoded certifi‐
42 cate. When the iteration is complete it will return GNUTLS_E_RE‐
43 QUESTED_DATA_NOT_AVAILABLE.
44
45 Typically cert_type should be GNUTLS_CRT_X509.
46
47 All values set are allocated and must be cleared using gnutls_free(),
48
50 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative er‐
51 ror value.
52
54 3.4.0
55
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
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.2 gnutls_system_key_iter_get_info(3)