cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SSL cert error

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Fri, 18 Jun 2004 14:20:16 +0200

"Daniel Stenberg" <daniel-curl_at_haxx.se> said:

> Fix the wildcard-check to allow a single '*' pretty much anywhere in the
> the string and it should match "normally" against the used host name.
>
> Remove the requirement for the dot in the name
>
> Remove the restriction that prevents the '*' part to include a dot.
>
> You or me?

I can do it. How about using fnmatch() for those who have it and adding
a cut-down version for those who doesn't? E.g.

#ifdef HAVE_FNMATCH
#define Curl_hostmatch(pattern,name) fnmatch(pattern,name,FNM_NOCASE)
#else
extern int Curl_hostmatch (const char *, const char *);
#endif

And handle only FNM_NOCASE in Curl_hostmatch()

Two new tests for you to do in Configure.

--gv.
Received on 2004-06-18