From: Nikos Mavrogiannopoulos Date: Wed, 20 Aug 2014 17:33:31 +0000 (+0200) Subject: tests: Added case sensitive checks in hostname verification X-Git-Tag: gnutls_3_4_0~1052 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c57f20b098a2e230e15a597da8c0bebcb49fe89;p=thirdparty%2Fgnutls.git tests: Added case sensitive checks in hostname verification --- diff --git a/tests/hostname-check.c b/tests/hostname-check.c index 737af606a9..120f3b9323 100644 --- a/tests/hostname-check.c +++ b/tests/hostname-check.c @@ -1155,10 +1155,18 @@ void doit(void) if (!ret) fail("%d: Hostname incorrectly does not match (%d)\n", __LINE__, ret); + ret = gnutls_x509_crt_check_hostname(x509, "γΓγ.τόΣτ.gr"); + if (!ret) + fail("%d: Hostname incorrectly does not match (%d)\n", __LINE__, ret); + ret = gnutls_x509_crt_check_hostname(x509, "τέστ.gr"); if (!ret) fail("%d: Hostname incorrectly does not match (%d)\n", __LINE__, ret); + ret = gnutls_x509_crt_check_hostname(x509, "ΤΈΣΤ.gr"); + if (!ret) + fail("%d: Hostname incorrectly does not match (%d)\n", __LINE__, ret); + #ifdef ENABLE_OPENPGP if (debug) success("Testing pem11...\n");