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 type
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 (0) 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 If the certificate is a CA a positive value will be returned, or (0) if
32 the certificate does not have CA flag set. A negative error code may
33 be returned in case of errors. If the certificate does not contain the
34 basicConstraints extension GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will
35 be returned.
36
38 Report bugs to <bugs@gnutls.org>.
39 Home page: http://www.gnutls.org
40
41
43 Copyright © 2001-2018 Free Software Foundation, Inc., and others.
44 Copying and distribution of this file, with or without modification,
45 are permitted in any medium without royalty provided the copyright
46 notice and this notice are preserved.
47
49 The full documentation for gnutls is maintained as a Texinfo manual.
50 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
51 visit
52
53 http://www.gnutls.org/manual/
54
55gnutls 3.6.5 gnutls_x509_crt_get_ca_status(3)