1gnutls_x509_crt_get_basic_constraintsg(n3ug)tnlustls_x509_crt_get_basic_constraints(3)
2
3
4

NAME

6       gnutls_x509_crt_get_basic_constraints - API function
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int    gnutls_x509_crt_get_basic_constraints(gnutls_x509_crt_t    cert,
12       unsigned int * critical, unsigned int * ca, int * pathlen);
13

ARGUMENTS

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
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

DESCRIPTION

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

RETURNS

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

REPORTING BUGS

45       Report bugs to <bugs@gnutls.org>.
46       Home page: https://www.gnutls.org
47
48
50       Copyright © 2001-2020 Free Software Foundation, Inc., and others.
51       Copying  and  distribution  of this file, with or without modification,
52       are permitted in any medium  without  royalty  provided  the  copyright
53       notice and this notice are preserved.
54

SEE ALSO

56       The  full  documentation  for gnutls is maintained as a Texinfo manual.
57       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
58       visit
59
60       https://www.gnutls.org/manual/
61
62gnutls                              3.6g.n1u3tls_x509_crt_get_basic_constraints(3)
Impressum