1gnutls_x509_crq_get_basic_constraintsg(n3ug)tnlustls_x509_crq_get_basic_constraints(3)
2
3
4
6 gnutls_x509_crq_get_basic_constraints - API function
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_crq_get_basic_constraints(gnutls_x509_crq_t crq,
12 unsigned int * critical, unsigned int * ca, int * pathlen);
13
15 gnutls_x509_crq_t crq
16 should contain a gnutls_x509_crq_t type
17
18 unsigned int * critical
19 will be non-zero if the extension is marked as critical
20
21 unsigned int * ca
22 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 error codes indicate a present pathLen‐
29 Constraint 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 (0) if
39 the certificate does not have CA flag set. A negative error code may
40 be 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 <bugs@gnutls.org>.
49 Home page: https://www.gnutls.org
50
51
53 Copyright © 2001-2020 Free Software Foundation, Inc., and others.
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 /usr/share/doc/gnutls/ directory does not contain the HTML form
61 visit
62
63 https://www.gnutls.org/manual/
64
65gnutls 3.6g.n1u3tls_x509_crq_get_basic_constraints(3)