From: Daniel Stenberg Date: Fri, 24 Aug 2001 06:20:47 +0000 (+0000) Subject: strcasecmp() is banned from our code, should be strequal() everywhere! X-Git-Tag: before_urldata_rename~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=df09214c6236c826bf1d44885fb4c42e77a23808;p=thirdparty%2Fcurl.git strcasecmp() is banned from our code, should be strequal() everywhere! Tim Costello reported bug report #454858. --- diff --git a/lib/ssluse.c b/lib/ssluse.c index 4eb94c7906..eb7e485ac4 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -407,7 +407,7 @@ Curl_SSLConnect(struct connectdata *conn) return CURLE_SSL_PEER_CERTIFICATE; } - if (strcasecmp(peer_CN, conn->hostname) != 0) { + if (!strequal(peer_CN, conn->hostname)) { if (data->ssl.verifyhost > 1) { failf(data, "SSL: certificate subject name '%s' does not match target host name '%s'", peer_CN, conn->hostname);