From e7dd7c54ffe8e1562e3adc6fd29f0fc889a62760 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 30 Jan 2003 14:48:07 +0000 Subject: don't check for the CA cert bundle if --insecure is used --- src/main.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index b416e55c1..6397e9035 100644 --- a/src/main.c +++ b/src/main.c @@ -2464,17 +2464,19 @@ operate(struct Configurable *config, int argc, char *argv[]) * 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) { -- cgit v1.2.3