cURL / Mailing Lists / curl-library / Single Mail


Re: SSL cert error

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

"Daniel Stenberg" <> 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.

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

And handle only FNM_NOCASE in Curl_hostmatch()

Two new tests for you to do in Configure.

Received on 2004-06-18