projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12acab9
)
strcasecmp() is banned from our code, should be strequal() everywhere!
author
Daniel Stenberg
<daniel@haxx.se>
Fri, 24 Aug 2001 06:20:47 +0000
(06:20 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Fri, 24 Aug 2001 06:20:47 +0000
(06:20 +0000)
Tim Costello reported bug report #454858.
lib/ssluse.c
patch
|
blob
|
history
diff --git
a/lib/ssluse.c
b/lib/ssluse.c
index
4eb94c7
..
eb7e485
100644
(file)
--- 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);