diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-06-13 08:33:26 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-06-13 08:33:26 +0000 |
commit | be72eaa327359317568cb5a2549c103826f7e071 (patch) | |
tree | dd1947e314765be0c1429bc6f854cc4e560fa384 | |
parent | 61bded1d8265211f434143aa7984783f2ab2a045 (diff) |
use Curl_strcasestr() when checking wildcard cert names
-rw-r--r-- | lib/ssluse.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c index 20b6b7d45..abe299811 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -45,6 +45,7 @@ #include "inet_pton.h" #include "ssluse.h" #include "connect.h" /* Curl_ourerrno() proto */ +#include "strequal.h" #ifdef USE_SSLEAY #include <openssl/rand.h> @@ -754,8 +755,8 @@ cert_hostcheck(const char *certname, const char *hostname) if(!strchr(certdomain+1, '.')) return 0; /* the certificate must have at least another dot in its name */ - /* find 'certdomain' within 'hostname' */ - tmp = strstr(hostname, certdomain); + /* find 'certdomain' within 'hostname', case insensitive */ + tmp = Curl_strcasestr(hostname, certdomain); if(tmp) { /* ok the certname's domain matches the hostname, let's check that it's a tail-match */ |