curl-library
Re: curl 7.23 for windows wants .crt for plain http
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 16 Nov 2011 22:56:19 +0100 (CET)
Date: Wed, 16 Nov 2011 22:56:19 +0100 (CET)
On Wed, 16 Nov 2011, Mark Brand wrote:
> I had no idea why I couldn't get curl to work until I ran gdb. See the call
> to FindWin32CACert(config, "curl-ca-bundle.crt") at src/tool_operate.c:304.
>
> Is this by design?
No, that's a bug. (A serious enough bug that I figure we need to consider a
swift update release)) We shouldn't insist on a CA cert bundle to be present.
You can work around the bug by applying this patch:
--- a/src/tool_doswin.c
+++ b/src/tool_doswin.c
@@ -285,8 +285,6 @@ CURLcode FindWin32CACert(struct Configurable *config,
const
if(!config->cacert)
result = CURLE_OUT_OF_MEMORY;
}
- else
- result = CURLE_SSL_CACERT;
Curl_safefree(buf);
}
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-11-16