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 |
|---|---|
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.