curl plugin: Enable the `Verify{Peer,Host}' options by default.
authorFlorian Forster <octo@huhu.verplant.org>
Fri, 6 Feb 2009 15:53:49 +0000 (16:53 +0100)
committerFlorian Forster <octo@huhu.verplant.org>
Fri, 6 Feb 2009 15:53:49 +0000 (16:53 +0100)
So the curl plugin behaves just like the apache plugin in this respect.

src/curl.c

index cfe5a4f..88b5496 100644 (file)
@@ -395,6 +395,11 @@ static int cc_config_add_page (oconfig_item_t *ci) /* {{{ */
     return (-1);
   }
   memset (page, 0, sizeof (*page));
+  page->url = NULL;
+  page->user = NULL;
+  page->pass = NULL;
+  page->verify_peer = 1;
+  page->verify_host = 1;
 
   page->instance = strdup (ci->values[0].value.string);
   if (page->instance == NULL)