]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests: do not perform internationalized name checks without libidn
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 6 May 2015 08:03:16 +0000 (10:03 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 6 May 2015 08:03:16 +0000 (10:03 +0200)
tests/hostname-check.c

index 120f3b932362eb8e30c131d81017e70b820b61ed..670248ac28c9f77d495b19473aa13270699dfb4f 100644 (file)
@@ -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)