1gnutls_x509_name_constraints_get_pgenrumgtinltustt_elxds5(039)_name_constraints_get_permitted(3)
2
3
4

NAME

6       gnutls_x509_name_constraints_get_permitted - API function
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int    gnutls_x509_name_constraints_get_permitted(gnutls_x509_name_con‐
12       straints_t nc, unsigned idx, unsigned * type, gnutls_datum_t * name);
13

ARGUMENTS

15       gnutls_x509_name_constraints_t nc
16                   the extracted name constraints
17
18       unsigned idx
19                   the index of the constraint
20
21       unsigned * type
22                   the  type  of  the  constraint  (of  type  gnutls_x509_sub‐
23                   ject_alt_name_t)
24
25       gnutls_datum_t * name
26                   the name in the constraint (of the specific type)
27

DESCRIPTION

29       This function will return an intermediate type containing the name con‐
30       straints of the provided CA certificate. That structure can be used  in
31       combination with gnutls_x509_name_constraints_check() to verify whether
32       a server's name is in accordance with the constraints.
33
34       The name should be treated as constant and valid for  the  lifetime  of
35       nc .
36

RETURNS

38       On    success,   GNUTLS_E_SUCCESS   (0)   is   returned,   GNUTLS_E_RE‐
39       QUESTED_DATA_NOT_AVAILABLE if the extension is not present, otherwise a
40       negative error value.
41

SINCE

43       3.3.0
44

REPORTING BUGS

46       Report bugs to <bugs@gnutls.org>.
47       Home page: https://www.gnutls.org
48
49
51       Copyright © 2001- Free Software Foundation, Inc., and others.
52       Copying  and  distribution  of this file, with or without modification,
53       are permitted in any medium without royalty provided the copyright  no‐
54       tice and this notice are preserved.
55

SEE ALSO

57       The  full  documentation  for gnutls is maintained as a Texinfo manual.
58       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
59       visit
60
61       https://www.gnutls.org/manual/
62
63gnutls                           gnut3l.s7_.x2509_name_constraints_get_permitted(3)
Impressum