1gnutls_x509_policies_get(3) gnutls gnutls_x509_policies_get(3)
2
3
4
6 gnutls_x509_policies_get - API function
7
9 #include <gnutls/x509-ext.h>
10
11 int gnutls_x509_policies_get(gnutls_x509_policies_t policies, unsigned
12 int seq, struct gnutls_x509_policy_st * policy);
13
15 gnutls_x509_policies_t policies
16 The policies
17
18 unsigned int seq
19 The index of the name to get
20
21 struct gnutls_x509_policy_st * policy
22 Will hold the policy
23
25 This function will return a specific policy as stored in the policies
26 type. The returned values should be treated as constant and valid for
27 the lifetime of policies .
28
29 The any policy OID is available as the GNUTLS_X509_OID_POLICY_ANY
30 macro.
31
33 On success, GNUTLS_E_SUCCESS [22m(0) is returned, GNUTLS_E_RE‐
34 QUESTED_DATA_NOT_AVAILABLE if the index is out of bounds, otherwise a
35 negative error value.
36
38 3.3.0
39
41 Report bugs to <bugs@gnutls.org>.
42 Home page: https://www.gnutls.org
43
44
46 Copyright © 2001- Free Software Foundation, Inc., and others.
47 Copying and distribution of this file, with or without modification,
48 are permitted in any medium without royalty provided the copyright no‐
49 tice and this notice are preserved.
50
52 The full documentation for gnutls is maintained as a Texinfo manual.
53 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
54 visit
55
56 https://www.gnutls.org/manual/
57
58gnutls 3.7.8 gnutls_x509_policies_get(3)