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