Blame doc/functions/gnutls_x509_crt_check_hostname

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {unsigned} {gnutls_x509_crt_check_hostname} (gnutls_x509_crt_t @var{cert}, const char * @var{hostname})
Packit aea12f
@var{cert}: should contain an gnutls_x509_crt_t type
Packit aea12f
Packit aea12f
@var{hostname}: A null terminated string that contains a DNS name
Packit aea12f
Packit aea12f
This function will check if the given certificate's subject matches
Packit aea12f
the given hostname.  This is a basic implementation of the matching
Packit aea12f
described in RFC6125, and takes into account wildcards,
Packit aea12f
and the DNSName/IPAddress subject alternative name PKIX extension.
Packit aea12f
Packit aea12f
For details see also @code{gnutls_x509_crt_check_hostname2()} .
Packit aea12f
Packit aea12f
@strong{Returns:} non-zero for a successful match, and zero on failure.
Packit aea12f
@end deftypefun