Commit e7dd7c54 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

don't check for the CA cert bundle if --insecure is used

parent b0b50bd1
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -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)
    else
      FindWin32CACert(config, "curl-ca-bundle.crt");
#endif
  }

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