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 A negative value may be returned in case of parsing error. If the cer‐
29 tificate does not contain the basicConstraints extension
30 GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned.
31
33 Report bugs to <bug-gnutls@gnu.org>.
34
36 Copyright © 2006 Free Software Foundation.
37 Permission is granted to make and distribute verbatim copies of this
38 manual provided the copyright notice and this permission notice are
39 preserved on all copies.
40
42 The full documentation for gnutls is maintained as a Texinfo manual.
43 If the info and gnutls programs are properly installed at your site,
44 the command
45
46 info gnutls
47
48 should give you access to the complete manual.
49
50
51
52gnutls 1.6.3 gnutls_x509_crt_get_ca_status(3)