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, int * ca, int * pathlen);
13

ARGUMENTS

15       gnutls_x509_crt_t cert
16                   should contain a gnutls_x509_crt_t structure
17
18       unsigned int * critical
19                   will be non zero if the extension is marked as critical
20
21       int * ca    pointer to output integer  indicating  CA  status,  may  be
22                   NULL,  value is 1 if the certificate CA flag is set, 0 oth‐
23                   erwise.
24
25       int * pathlen
26                   pointer to output integer indicating path  length  (may  be
27                   NULL),  non-negative  values indicate a present pathLenCon‐
28                   straint field and the actual value, -1  indicate  that  the
29                   field is absent.
30

DESCRIPTION

32       This function will read the certificate's basic constraints, and return
33       the certificates CA status.  It reads the basicConstraints X.509 exten‐
34       sion (2.5.29.19).
35

RETURN VALUE

37       If  the  certificate is a CA a positive value will be returned, or zero
38       if the certificate does not have CA flag set.  A negative value may  be
39       returned  in  case  of errors.  If the certificate does not contain the
40       basicConstraints extension  GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE  will
41       be returned.
42

REPORTING BUGS

44       Report    bugs    to    <bug-gnutls@gnu.org>.     GnuTLS   home   page:
45       http://www.gnu.org/software/gnutls/ General help  using  GNU  software:
46       http://www.gnu.org/gethelp/
47
49       Copyright © 2008 Free Software Foundation.
50       Copying  and  distribution  of this file, with or without modification,
51       are permitted in any medium  without  royalty  provided  the  copyright
52       notice and this notice are preserved.
53

SEE ALSO

55       The  full  documentation  for gnutls is maintained as a Texinfo manual.
56       If the info and gnutls programs are properly installed  at  your  site,
57       the command
58
59              info gnutls
60
61       should give you access to the complete manual.
62
63
64
65gnutls                             2.12g.n6u.t1ls_x509_crt_get_basic_constraints(3)
Impressum