1gnutls_openpgp_key_check_hostname(3)gnutlsgnutls_openpgp_key_check_hostname(3)
2
3
4
6 gnutls_openpgp_key_check_hostname - This function compares the given
7 hostname with the hostname in the key
8
10 #include <gnutls/openpgp.h>
11
12 int gnutls_openpgp_key_check_hostname(gnutls_openpgp_key_t key, const
13 char * hostname);
14
16 gnutls_openpgp_key_t key
17 should contain an gnutls_openpgp_key_t structure
18
19 const char * hostname
20 A null terminated string that contains a DNS name
21
23 This function will check if the given key's owner matches the given
24 hostname. This is a basic implementation of the matching described in
25 RFC2818 (HTTPS), which takes into account wildcards.
26
27 Returns non zero on success, and zero on failure.
28
30 Report bugs to <bug-gnutls@gnu.org>.
31
33 Copyright © 2006 Free Software Foundation.
34 Permission is granted to make and distribute verbatim copies of this
35 manual provided the copyright notice and this permission notice are
36 preserved on all copies.
37
39 The full documentation for gnutls is maintained as a Texinfo manual.
40 If the info and gnutls programs are properly installed at your site,
41 the command
42
43 info gnutls
44
45 should give you access to the complete manual.
46
47
48
49gnutls 1.6.3gnutls_openpgp_key_check_hostname(3)