]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests: Added case sensitive checks in hostname verification
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 20 Aug 2014 17:33:31 +0000 (19:33 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 20 Aug 2014 17:33:31 +0000 (19:33 +0200)
tests/hostname-check.c

index 737af606a921a09daabce7eefacff6e3f56aeeb3..120f3b932362eb8e30c131d81017e70b820b61ed 100644 (file)
@@ -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");