_gnutls_hostname_compare: toupper vs. c_toupper
Kalle Olavi Niemitalo
kon at iki.fi
Tue May 3 22:53:03 CEST 2011
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: </pipermail/attachments/20110503/063ee125/attachment.pgp>
More information about the Gnutls-devel
mailing list