1gnutls_x509_name_constraints_check(3)gnutlsgnutls_x509_name_constraints_check(3)
2
3
4

NAME

6       gnutls_x509_name_constraints_check - API function
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       unsigned       gnutls_x509_name_constraints_check(gnutls_x509_name_con‐
12       straints_t    nc,    gnutls_x509_subject_alt_name_t     type,     const
13       gnutls_datum_t * name);
14

ARGUMENTS

16       gnutls_x509_name_constraints_t nc
17                   the extracted name constraints
18
19       gnutls_x509_subject_alt_name_t type
20                   the   type   of   the   constraint   to   check   (of  type
21                   gnutls_x509_subject_alt_name_t)
22
23       const gnutls_datum_t * name
24                   the name to be checked
25

DESCRIPTION

27       This function will check the provided name against the constraints in
28        nc using the RFC5280 rules. Currently this function is limited to  DNS
29       names,   emails   and   IP   addresses   (of  type  GNUTLS_SAN_DNSNAME,
30       GNUTLS_SAN_RFC822NAME and GNUTLS_SAN_IPADDRESS).
31

RETURNS

33       zero if the provided name is not acceptable, and non-zero otherwise.
34

SINCE

36       3.3.0
37

REPORTING BUGS

39       Report bugs to <bugs@gnutls.org>.
40       Home page: https://www.gnutls.org
41
42
44       Copyright © 2001-2019 Free Software Foundation, Inc., and others.
45       Copying and distribution of this file, with  or  without  modification,
46       are  permitted  in  any  medium  without royalty provided the copyright
47       notice and this notice are preserved.
48

SEE ALSO

50       The full documentation for gnutls is maintained as  a  Texinfo  manual.
51       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
52       visit
53
54       https://www.gnutls.org/manual/
55
56gnutls                              3.6.11gnutls_x509_name_constraints_check(3)
Impressum