1gnutls_x509_name_constraints_check_crgtng(un3tu)ltsls_x509_name_constraints_check_crt(3)
2
3
4
6 gnutls_x509_name_constraints_check_crt - API function
7
9 #include <gnutls/x509.h>
10
11 unsigned gnutls_x509_name_constraints_check_crt(gnutls_x509_name_con‐
12 straints_t nc, gnutls_x509_subject_alt_name_t type, gnutls_x509_crt_t
13 cert);
14
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 gnutls_x509_crt_t cert
24 the certificate to be checked
25
27 This function will check the provided certificate names against the
28 constraints in
29 nc using the RFC5280 rules. It will traverse all the certificate's
30 names and alternative names.
31
32 Currently this function is limited to DNS names and emails (of type
33 GNUTLS_SAN_DNSNAME and GNUTLS_SAN_RFC822NAME).
34
36 zero if the provided name is not acceptable, and non-zero otherwise.
37
39 3.3.0
40
42 Report bugs to <bugs@gnutls.org>.
43 Home page: https://www.gnutls.org
44
45
47 Copyright © 2001- Free Software Foundation, Inc., and others.
48 Copying and distribution of this file, with or without modification,
49 are permitted in any medium without royalty provided the copyright
50 notice and this notice are preserved.
51
53 The full documentation for gnutls is maintained as a Texinfo manual.
54 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
55 visit
56
57 https://www.gnutls.org/manual/
58
59gnutls 3.g6n.u1t5ls_x509_name_constraints_check_crt(3)