1gnutls_x509_crt_set_policy(3) gnutls gnutls_x509_crt_set_policy(3)
2
3
4
6 gnutls_x509_crt_set_policy - API function
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_crt_set_policy(gnutls_x509_crt_t crt, const struct
12 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 const struct gnutls_x509_policy_st * policy
19 A pointer to a policy
20
21 unsigned int critical
22 use non-zero if the extension is marked as critical
23
25 This function will set the certificate policy extension (2.5.29.32).
26 Multiple calls to this function append a new policy.
27
28 Note the maximum text size for the qualifier GNUTLS_X509_QUALIFIER_NO‐
29 TICE is 200 characters. This function will fail with GNUTLS_E_IN‐
30 VALID_REQUEST if this is exceeded.
31
33 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative er‐
34 ror value.
35
37 3.1.5
38
40 Report bugs to <bugs@gnutls.org>.
41 Home page: https://www.gnutls.org
42
43
45 Copyright © 2001- Free Software Foundation, Inc., and others.
46 Copying and distribution of this file, with or without modification,
47 are permitted in any medium without royalty provided the copyright no‐
48 tice and this notice are preserved.
49
51 The full documentation for gnutls is maintained as a Texinfo manual.
52 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
53 visit
54
55 https://www.gnutls.org/manual/
56
57gnutls 3.7.8 gnutls_x509_crt_set_policy(3)