Author: dsilvers
Date: Wed Jun 27 17:13:54 2007
New Revision: 3372
URL:
http://svn.semichrome.net?rev=3D3372&view=3Drev
Log:
Only pass option_ca_bundle and option_ca_path to cURL if they are non-empty.
Modified:
trunk/netsurf/content/fetchers/fetch_curl.c
Modified: trunk/netsurf/content/fetchers/fetch_curl.c
URL:
http://svn.semichrome.net/trunk/netsurf/content/fetchers/fetch_curl.c?=
rev=3D3372&r1=3D3371&r2=3D3372&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/netsurf/content/fetchers/fetch_curl.c (original)
+++ trunk/netsurf/content/fetchers/fetch_curl.c Wed Jun 27 17:13:54 2007
@@ -1342,9 +1342,9 @@
SETOPT(CURLOPT_NOSIGNAL, 1L);
SETOPT(CURLOPT_CONNECTTIMEOUT, 30L);
=
- if (option_ca_bundle)
+ if (option_ca_bundle && strcmp(option_ca_bundle, ""))
SETOPT(CURLOPT_CAINFO, option_ca_bundle);
- if (option_ca_path)
+ if (option_ca_path && strcmp(option_ca_path, ""))
SETOPT(CURLOPT_CAPATH, option_ca_path);
=
/* cURL initialised okay, register the fetchers */