Skip to content
Snippets Groups Projects
Commit df09214c authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

strcasecmp() is banned from our code, should be strequal() everywhere!

Tim Costello reported bug report #454858.
parent 12acab9b
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment