File: gnutls_x509_name_constraints_check_crt

package info (click to toggle)
gnutls28 3.3.8-6
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 51,388 kB
  • sloc: ansic: 191,357; asm: 60,370; sh: 21,457; makefile: 5,257; lisp: 1,531; yacc: 1,254; cpp: 1,155; perl: 199; sed: 16
file content (22 lines) | stat: -rw-r--r-- 814 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22




@deftypefun {unsigned} {gnutls_x509_name_constraints_check_crt} (gnutls_x509_name_constraints_t @var{nc}, gnutls_x509_subject_alt_name_t @var{type}, gnutls_x509_crt_t @var{cert})
@var{nc}: the extracted name constraints structure

@var{type}: the type of the constraint to check (of type gnutls_x509_subject_alt_name_t)

@var{cert}: the certificate to be checked

This function will check the provided certificate names against the constraints in
 @code{nc} using the RFC5280 rules. It will traverse all the certificate's names and
alternative names.

Currently this function is limited to DNS
names and emails (of type @code{GNUTLS_SAN_DNSNAME}  and @code{GNUTLS_SAN_RFC822NAME} ).

@strong{Returns:} zero if the provided name is not acceptable, and non-zero otherwise.

@strong{Since:} 3.3.0
@end deftypefun