1gnutls_x509_ext_import_name_constrainggtnnsuu(tt3ll)ss_x509_ext_import_name_constraints(3)
2
3
4
6 gnutls_x509_ext_import_name_constraints - API function
7
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
15 const gnutls_datum_t * ext
16 a DER encoded extension
17
18 gnutls_x509_name_constraints_t nc
19 The nameconstraints intermediate structure
20
21 unsigned int flags
22 zero or GNUTLS_NAME_CONSTRAINTS_FLAG_APPEND
23
25 This function will return an intermediate structure containing the name
26 constraints of the provided NameConstraints extension. That structure
27 can be used in combination with gnutls_x509_name_constraints_check() to
28 verify whether 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 structure is empty this function will behave identically as if
32 the flag was not set. Otherwise if there are elements in the nc
33 structure then only the excluded constraints will be appended to the
34 constraints.
35
36 Note that nc must be initialized prior to calling this function.
37
39 On success, GNUTLS_E_SUCCESS [22m(0) is returned,
40 GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE if the extension is not present,
41 otherwise a negative error value.
42
44 3.3.0
45
47 Report bugs to <bugs@gnutls.org>.
48 Home page: http://www.gnutls.org
49
50
52 Copyright © 2001-2014 Free Software Foundation, Inc..
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
58 The full documentation for gnutls is maintained as a Texinfo manual.
59 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
60 visit
61
62 http://www.gnutls.org/manual/
63
64gnutls 3g.n3u.t2l9s_x509_ext_import_name_constraints(3)