cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Re: error with -k (--insecure) (PATCH)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 30 Jan 2003 07:05:06 +0100 (CET)

On Wed, 29 Jan 2003, Roth, Kevin P. wrote:

> Was this bug fixed in 7.10.3? If not, could someone please find the problem
> and fix it? I'd imagine this would be pretty easy to correct...

Can you please apply this patch and see if it corrects your problem?

diff -u -r1.162 main.c
--- src/main.c 30 Jan 2003 05:15:57 -0000 1.162
+++ src/main.c 30 Jan 2003 06:03:49 -0000
@@ -2464,17 +2464,19 @@
    * We support the environment variable thing for non-Windows platforms
    * too. Just for the sake of it.
    */
- if (! config->cacert) {
+ if (!config->cacert &&
+ !config->capath &&
+ !config->insecure_ok) {
     env = curl_getenv("CURL_CA_BUNDLE");
     if(env) {
       GetStr(&config->cacert, env);
       free(env);
     }
- }
 #if defined(WIN32) && !defined(__CYGWIN32__)
- if (! config->cacert)
- FindWin32CACert(config, "curl-ca-bundle.crt");
+ else
+ FindWin32CACert(config, "curl-ca-bundle.crt");
 #endif
+ }

   if (config->postfields) {
     if (config->use_httpget) {

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
Received on 2003-01-30

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET