1
1
.\" DO NOT MODIFY THIS FILE! It was generated by gdoc.
2
.TH "gnutls_openpgp_crt_check_hostname" 3 "2.2.5" "gnutls" "gnutls"
2
.TH "gnutls_openpgp_crt_check_hostname" 3 "2.4.0" "gnutls" "gnutls"
4
gnutls_openpgp_crt_check_hostname \- This function compares the given hostname with the hostname in the key
4
gnutls_openpgp_crt_check_hostname \- compare hostname with the key's hostname
6
6
.B #include <gnutls/openpgp.h>
8
8
.BI "int gnutls_openpgp_crt_check_hostname(gnutls_openpgp_crt_t " key ", const char * " hostname ");"
10
10
.IP "gnutls_openpgp_crt_t key" 12
11
should contain an gnutls_openpgp_crt_t structure
11
should contain an \fBgnutls_openpgp_crt_t\fP structure
12
12
.IP "const char * hostname" 12
13
13
A null terminated string that contains a DNS name
15
This function will check if the given key's owner matches
16
the given hostname. This is a basic implementation of the matching
15
This function will check if the given key's owner matches the
16
given hostname. This is a basic implementation of the matching
17
17
described in RFC2818 (HTTPS), which takes into account wildcards.
19
Returns non zero on success, and zero on failure.
19
\fBGNUTLS_E_SUCCESS\fP on success, or an error code.
20
20
.SH "REPORTING BUGS"
21
21
Report bugs to <bug-gnutls@gnu.org>.
23
Copyright \(co 2006, 2007 Free Software Foundation.
23
Copyright \(co 2008 Free Software Foundation.
25
25
Permission is granted to make and distribute verbatim copies of this
26
26
manual provided the copyright notice and this permission notice are