1gnutls_x509_crt_get_name_constraints(g3n)utglnsutls_x509_crt_get_name_constraints(3)
2
3
4

NAME

6       gnutls_x509_crt_get_name_constraints - API function
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int     gnutls_x509_crt_get_name_constraints(gnutls_x509_crt_t     crt,
12       gnutls_x509_name_constraints_t nc, unsigned int flags, unsigned  int  *
13       critical);
14

ARGUMENTS

16       gnutls_x509_crt_t crt
17                   should contain a gnutls_x509_crt_t structure
18
19       gnutls_x509_name_constraints_t nc
20                   The nameconstraints intermediate structure
21
22       unsigned int flags
23                   zero or GNUTLS_NAME_CONSTRAINTS_FLAG_APPEND
24
25       unsigned int * critical
26                   the extension status
27

DESCRIPTION

29       This function will return an intermediate structure containing the name
30       constraints of the provided CA certificate. That structure can be  used
31       in  combination  with  gnutls_x509_name_constraints_check()  to  verify
32       whether a server's name is in accordance with the constraints.
33
34       When the  flags is set to GNUTLS_NAME_CONSTRAINTS_FLAG_APPEND, then  if
35       the   nc structure is empty this function will behave identically as if
36       the flag was not set.  Otherwise if  there  are  elements  in  the   nc
37       structure  then  only  the excluded constraints will be appended to the
38       constraints.
39
40       Note that  nc must be initialized prior to calling this function.
41

RETURNS

43       On      success,      GNUTLS_E_SUCCESS      (0)      is       returned,
44       GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE  if the extension is not present,
45       otherwise a negative error value.
46

SINCE

48       3.3.0
49

REPORTING BUGS

51       Report bugs to <bugs@gnutls.org>.
52       Home page: http://www.gnutls.org
53
54
56       Copyright © 2001-2014 Free Software Foundation, Inc..
57       Copying and distribution of this file, with  or  without  modification,
58       are  permitted  in  any  medium  without royalty provided the copyright
59       notice and this notice are preserved.
60

SEE ALSO

62       The full documentation for gnutls is maintained as  a  Texinfo  manual.
63       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
64       visit
65
66       http://www.gnutls.org/manual/
67
68gnutls                              3.3.g2n9utls_x509_crt_get_name_constraints(3)
Impressum