gnutls_openpgp_key_check_hostname(3)

gnutls_openpgp_key_check_hostname3

This function compares the given hostname with the hostname in the key

Usage

#include <gnutls/openpgp.h>

int gnutls_openpgp_key_check_hostname(gnutls_openpgp_key_t key, const char * hostname);

Arguments

gnutls_openpgp_key_t key

should contain an gnutls_openpgp_key_t structure

const char * hostname

A null terminated string that contains a DNS name

Overview

This function will check if the given key's owner matches the given hostname. This is a basic implementation of the matching described in RFC2818 (HTTPS), which takes into account wildcards.

Returns non zero on success, and zero on failure.

Reporting bugs

Report bugs to <[email protected]>.

From gnutls-doc 1.4.4-3+etch5 in Debian 4.0 (Etch). Parsed by carta from the page's man source.