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

NAME

6       gnutls_x509_crt_check_hostname  -  compares  the hostname with certifi‐
7       cate's hostname
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 DNSName/IPAddress subject alternative name PKIX extension.
27

RETURNS

29       non zero for a successful match, and zero on failure.
30

REPORTING BUGS

32       Report   bugs   to    <bug-gnutls@gnu.org>.     GnuTLS    home    page:
33       http://www.gnu.org/software/gnutls/  General  help  using GNU software:
34       http://www.gnu.org/gethelp/
35
37       Copyright © 2008 Free Software Foundation.
38       Copying and distribution of this file, with  or  without  modification,
39       are  permitted  in  any  medium  without royalty provided the copyright
40       notice and this notice are preserved.
41

SEE ALSO

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