1gnutls_x509_crq_get_basic_constraintsg(n3ug)tnlustls_x509_crq_get_basic_constraints(3)
2
3
4

NAME

6       gnutls_x509_crq_get_basic_constraints - API function
7

SYNOPSIS

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

ARGUMENTS

15       gnutls_x509_crq_t crq
16                   should contain a gnutls_x509_crq_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

SINCE

44       2.8.0
45

REPORTING BUGS

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

SEE ALSO

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