const char *oid, unsigned indx,
unsigned int raw_flag, void *buf,
size_t * buf_size);
-int gnutls_x509_crt_check_hostname(gnutls_x509_crt_t cert,
+unsigned gnutls_x509_crt_check_hostname(gnutls_x509_crt_t cert,
const char *hostname);
-int gnutls_x509_crt_check_hostname2(gnutls_x509_crt_t cert,
+unsigned gnutls_x509_crt_check_hostname2(gnutls_x509_crt_t cert,
const char *hostname, unsigned int flags);
int
gnutls_x509_crt_check_email(gnutls_x509_crt_t cert,
*
* Returns: non-zero for a successful match, and zero on failure.
**/
-int
+unsigned
gnutls_x509_crt_check_hostname(gnutls_x509_crt_t cert,
const char *hostname)
{
}
/**
- * gnutls_x509_crt_check_hostname:
+ * gnutls_x509_crt_check_hostname2:
* @cert: should contain an gnutls_x509_crt_t type
* @hostname: A null terminated string that contains a DNS name
* @flags: gnutls_certificate_verify_flags
*
* Returns: non-zero for a successful match, and zero on failure.
**/
-int
+unsigned
gnutls_x509_crt_check_hostname2(gnutls_x509_crt_t cert,
const char *hostname, unsigned int flags)
{