1gnutls_x509_crt_check_hostname(3)   gnutls   gnutls_x509_crt_check_hostname(3)
2
3
4

NAME

6       gnutls_x509_crt_check_hostname - This function compares the given host‐
7       name with the hostname in the certificate
8

SYNOPSIS

10       #include <gnutls/x509.h>
11
12       int gnutls_x509_crt_check_hostname(gnutls_x509_crt_t cert, const char *
13       hostname);
14

ARGUMENTS

16       gnutls_x509_crt_t cert
17                   should contain an gnutls_x509_crt_t structure
18
19       const char * hostname
20                   A null terminated string that contains a DNS name
21

DESCRIPTION

23       This function will check if the given certificate's subject matches the
24       given  hostname.  This  is  a  basic  implementation  of  the  matching
25       described  in  RFC2818 (HTTPS), which takes into account wildcards, and
26       the subject alternative name PKIX extension.
27
28       Returns non zero on success, and zero on failure.
29

REPORTING BUGS

31       Report bugs to <bug-gnutls@gnu.org>.
32
34       Copyright © 2006 Free Software Foundation.
35       Permission is granted to make and distribute verbatim  copies  of  this
36       manual  provided  the  copyright  notice and this permission notice are
37       preserved on all copies.
38

SEE ALSO

40       The full documentation for gnutls is maintained as  a  Texinfo  manual.
41       If  the  info  and gnutls programs are properly installed at your site,
42       the command
43
44              info gnutls
45
46       should give you access to the complete manual.
47
48
49
50gnutls                               1.6.3   gnutls_x509_crt_check_hostname(3)
Impressum