1gnutls_x509_ext_import_name_constrainggtnnsuu(tt3ll)ss_x509_ext_import_name_constraints(3)
2
3
4

NAME

6       gnutls_x509_ext_import_name_constraints - API function
7

SYNOPSIS

9       #include <gnutls/x509-ext.h>
10
11       int gnutls_x509_ext_import_name_constraints(const gnutls_datum_t * ext,
12       gnutls_x509_name_constraints_t nc, unsigned int flags);
13

ARGUMENTS

15       const gnutls_datum_t * ext
16                   a DER encoded extension
17
18       gnutls_x509_name_constraints_t nc
19                   The nameconstraints
20
21       unsigned int flags
22                   zero or GNUTLS_NAME_CONSTRAINTS_FLAG_APPEND
23

DESCRIPTION

25       This function will return an intermediate type containing the name con‐
26       straints of the provided NameConstraints extension. That can be used in
27       combination with gnutls_x509_name_constraints_check() to verify whether
28       a server's name is in accordance with the constraints.
29
30       When  the  flags is set to GNUTLS_NAME_CONSTRAINTS_FLAG_APPEND, then if
31       the  nc type is empty this function will behave identically as  if  the
32       flag was not set.  Otherwise if there are elements in the  nc structure
33       then the constraints will be merged with the existing constraints  fol‐
34       lowing RFC5280 p6.1.4 (excluded constraints will be appended, permitted
35       will be intersected).
36
37       Note that  nc must be initialized prior to calling this function.
38

RETURNS

40       On      success,      GNUTLS_E_SUCCESS      (0)      is       returned,
41       GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE  if the extension is not present,
42       otherwise a negative error value.
43

SINCE

45       3.3.0
46

REPORTING BUGS

48       Report bugs to <bugs@gnutls.org>.
49       Home page: http://www.gnutls.org
50
51
53       Copyright © 2001-2018 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

SEE ALSO

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       http://www.gnutls.org/manual/
64
65gnutls                              g3n.u6t.l5s_x509_ext_import_name_constraints(3)
Impressum