mirror of
https://github.com/curl/curl.git
synced 2026-06-03 19:14:36 +03:00
strcasecmp() is banned from our code, should be strequal() everywhere!
Tim Costello reported bug report #454858.
This commit is contained in:
parent
12acab9b86
commit
df09214c62
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue