1gnutls_x509_crq_get_basic_constraintsg(n3ug)tnlustls_x509_crq_get_basic_constraints(3)
2
3
4
6 gnutls_x509_crq_get_basic_constraints - get certificate's basic con‐
7 straints
8
10 #include <gnutls/x509.h>
11
12 int gnutls_x509_crq_get_basic_constraints(gnutls_x509_crq_t cert,
13 unsigned int * critical, int * ca, int * pathlen);
14
16 gnutls_x509_crq_t cert
17 should contain a gnutls_x509_crq_t structure
18
19 unsigned int * critical
20 will be non zero if the extension is marked as critical
21
22 int * ca pointer to output integer indicating CA status, may be
23 NULL, value is 1 if the certificate CA flag is set, 0 oth‐
24 erwise.
25
26 int * pathlen
27 pointer to output integer indicating path length (may be
28 NULL), non-negative values indicate a present pathLenCon‐
29 straint field and the actual value, -1 indicate that the
30 field is absent.
31
33 This function will read the certificate's basic constraints, and return
34 the certificates CA status. It reads the basicConstraints X.509 exten‐
35 sion (2.5.29.19).
36
38 If the certificate is a CA a positive value will be returned, or zero
39 if the certificate does not have CA flag set. A negative value may be
40 returned in case of errors. If the certificate does not contain the
41 basicConstraints extension GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will
42 be returned.
43
45 2.8.0
46
48 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
49 http://www.gnu.org/software/gnutls/ General help using GNU software:
50 http://www.gnu.org/gethelp/
51
53 Copyright © 2008 Free Software Foundation.
54 Copying and distribution of this file, with or without modification,
55 are permitted in any medium without royalty provided the copyright
56 notice and this notice are preserved.
57
59 The full documentation for gnutls is maintained as a Texinfo manual.
60 If the info and gnutls programs are properly installed at your site,
61 the command
62
63 info gnutls
64
65 should give you access to the complete manual.
66
67
68
69gnutls 2.g8n.u6tls_x509_crq_get_basic_constraints(3)