gnutls_openpgp_crt_check_hostname(3)

gnutls_openpgp_crt_check_hostname3

Api function

Usage

#include <gnutls/openpgp.h>

int gnutls_openpgp_crt_check_hostname(gnutls_openpgp_crt_t key, const char * hostname);

Arguments

gnutls_openpgp_crt_t key

should contain a gnutls_openpgp_crt_t type

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 for a successful match, and zero on failure.

Releases

4 releases since Debian 5.0 (Lenny); the text changed 3 times.

  1. 5.0
  2. 6.0
  3. 8
  4. 9

Reporting bugs

Report bugs to <[email protected]>.
Home page: http://www.gnutls.org

From gnutls-doc 3.5.8-5+deb9u5 in Debian 9 (Stretch). Parsed by carta from the page's man source.