1gnutls_x509_crt_get_policy(3) gnutls gnutls_x509_crt_get_policy(3)
2
3
4
6 gnutls_x509_crt_get_policy - API function
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_crt_get_policy(gnutls_x509_crt_t crt, unsigned indx,
12 struct gnutls_x509_policy_st * policy, unsigned int * critical);
13
15 gnutls_x509_crt_t crt
16 should contain a gnutls_x509_crt_t type
17
18 unsigned indx
19 This specifies which policy to return. Use (0) to get the
20 first one.
21
22 struct gnutls_x509_policy_st * policy
23 A pointer to a policy structure.
24
25 unsigned int * critical
26 will be non-zero if the extension is marked as critical
27
29 This function will extract the certificate policy (extension 2.5.29.32)
30 specified by the given index.
31
32 The policy returned by this function must be deinitialized by using
33 gnutls_x509_policy_release().
34
36 On success, GNUTLS_E_SUCCESS [22m(0) is returned,
37 GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE if the extension is not present,
38 otherwise a negative error value.
39
41 3.1.5
42
44 Report bugs to <bugs@gnutls.org>.
45 Home page: https://www.gnutls.org
46
47
49 Copyright © 2001-2020 Free Software Foundation, Inc., and others.
50 Copying and distribution of this file, with or without modification,
51 are permitted in any medium without royalty provided the copyright
52 notice and this notice are preserved.
53
55 The full documentation for gnutls is maintained as a Texinfo manual.
56 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
57 visit
58
59 https://www.gnutls.org/manual/
60
61gnutls 3.6.13 gnutls_x509_crt_get_policy(3)