[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
_gnutls_hostname_compare: toupper vs. c_toupper
From: |
Kalle Olavi Niemitalo |
Subject: |
_gnutls_hostname_compare: toupper vs. c_toupper |
Date: |
Tue, 03 May 2011 23:53:03 +0300 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.51 (gnu/linux) |
In GnuTLS 2.8.6 and 2.10.5, _gnutls_hostname_compare uses toupper
on the characters of the hostname:
/* find the first different character */
for (; *certname && *hostname && toupper (*certname) == toupper (*hostname);
certname++, hostname++, certnamesize--)
;
I suspect this should be c_toupper instead, so that 'i' matches
'I' in hostnames even in a Turkish (or is that Turkic?) locale.
pgpJTSOjniQZx.pgp
Description: PGP signature
- _gnutls_hostname_compare: toupper vs. c_toupper,
Kalle Olavi Niemitalo <=