1gnutls_x509_name_constraints_add_pgenrumgtinltustt_elxds5(039)_name_constraints_add_permitted(3)
2
3
4
6 gnutls_x509_name_constraints_add_permitted - API function
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_name_constraints_add_permitted(gnutls_x509_name_con‐
12 straints_t nc, gnutls_x509_subject_alt_name_t type, const gnutls_da‐
13 tum_t * name);
14
16 gnutls_x509_name_constraints_t nc
17 The nameconstraints
18
19 gnutls_x509_subject_alt_name_t type
20 The type of the constraints
21
22 const gnutls_datum_t * name
23 The data of the constraints
24
26 This function will add a name constraint to the list of permitted con‐
27 straints. The constraints type can be any of the following types:
28 GNUTLS_SAN_DNSNAME, GNUTLS_SAN_RFC822NAME, GNUTLS_SAN_DN,
29 GNUTLS_SAN_URI, GNUTLS_SAN_IPADDRESS. For the latter, an IP address in
30 network byte order is expected, followed by its network mask.
31
33 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative er‐
34 ror value.
35
37 3.3.0
38
40 Report bugs to <bugs@gnutls.org>.
41 Home page: https://www.gnutls.org
42
43
45 Copyright © 2001- Free Software Foundation, Inc., and others.
46 Copying and distribution of this file, with or without modification,
47 are permitted in any medium without royalty provided the copyright no‐
48 tice and this notice are preserved.
49
51 The full documentation for gnutls is maintained as a Texinfo manual.
52 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
53 visit
54
55 https://www.gnutls.org/manual/
56
57gnutls gnut3l.s7_.x8509_name_constraints_add_permitted(3)