From: Nikos Mavrogiannopoulos Date: Wed, 6 May 2015 08:03:16 +0000 (+0200) Subject: tests: do not perform internationalized name checks without libidn X-Git-Tag: gnutls_3_4_2~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78fcb17c74e1e625f89e71e0641083c85a268414;p=thirdparty%2Fgnutls.git tests: do not perform internationalized name checks without libidn --- diff --git a/tests/hostname-check.c b/tests/hostname-check.c index 120f3b9323..670248ac28 100644 --- a/tests/hostname-check.c +++ b/tests/hostname-check.c @@ -1147,6 +1147,7 @@ void doit(void) if (ret) fail("%d: Hostname incorrectly matches (%d)\n", __LINE__, ret); +#ifdef HAVE_LIBIDN ret = gnutls_x509_crt_check_hostname(x509, "www.teχ.gr"); if (!ret) fail("%d: Hostname incorrectly does not match (%d)\n", __LINE__, ret); @@ -1166,6 +1167,7 @@ void doit(void) ret = gnutls_x509_crt_check_hostname(x509, "ΤΈΣΤ.gr"); if (!ret) fail("%d: Hostname incorrectly does not match (%d)\n", __LINE__, ret); +#endif #ifdef ENABLE_OPENPGP if (debug)