cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Curl's cert_hostcheck and hostmatch are static to OpenSSL

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 3 Nov 2012 20:08:30 +0100 (CET)

On Sat, 3 Nov 2012, Oscar Koeroo wrote:

> At the moment the functions cert_hostcheck and hostmatch are static
> functions in the lib/ssluse.c file. I need these in axTLS too.
>
> I wish to put it somewhere generic:
>
> Options are:
> - a completely new file
> - lib/rawstr.c

I'd prefer a new file (hostcheck.c or certcheck?). And then have ssluse.h and
axtls.h define some magic define that the new file could use to get compiled
only if defined... or similar.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-11-03