1gnutls_x509_crt_get_ca_status(3) gnutls gnutls_x509_crt_get_ca_status(3)
2
3
4
6 gnutls_x509_crt_get_ca_status - API function
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_crt_get_ca_status(gnutls_x509_crt_t cert, unsigned int
12 * critical);
13
15 gnutls_x509_crt_t cert
16 should contain a gnutls_x509_crt_t structure
17
18 unsigned int * critical
19 will be non zero if the extension is marked as critical
20
22 This function will return certificates CA status, by reading the basic‐
23 Constraints X.509 extension (2.5.29.19). If the certificate is a CA a
24 positive value will be returned, or zero if the certificate does not
25 have CA flag set.
26
27 Use gnutls_x509_crt_get_basic_constraints() if you want to read the
28 pathLenConstraint field too.
29
31 A negative value may be returned in case of parsing error. If the cer‐
32 tificate does not contain the basicConstraints extension
33 GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned.
34
36 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
37 http://www.gnu.org/software/gnutls/ General help using GNU software:
38 http://www.gnu.org/gethelp/
39
41 Copyright © 2008 Free Software Foundation.
42 Copying and distribution of this file, with or without modification,
43 are permitted in any medium without royalty provided the copyright
44 notice and this notice are preserved.
45
47 The full documentation for gnutls is maintained as a Texinfo manual.
48 If the info and gnutls programs are properly installed at your site,
49 the command
50
51 info gnutls
52
53 should give you access to the complete manual.
54
55
56
57gnutls 2.12.6.1 gnutls_x509_crt_get_ca_status(3)