X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fascent.c;h=6782fce199db3f5c9ffbbe984d81080e7e1a7cb3;hb=d48a9456e42af4ab5881ab055c95ceab71819bc1;hp=1e7eca1480fee669b888cd279a3f903f7e1ddeb9;hpb=91743fc0c8785f84f3976d5f5d430b1b3a7d4918;p=collectd.git diff --git a/src/ascent.c b/src/ascent.c index 1e7eca14..6782fce1 100644 --- a/src/ascent.c +++ b/src/ascent.c @@ -562,12 +562,12 @@ static int ascent_init (void) /* {{{ */ curl_easy_setopt (curl, CURLOPT_URL, url); curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, 1); - if ((verify_peer == NULL) || (strcmp (verify_peer, "true") == 0)) + if ((verify_peer == NULL) || IS_TRUE (verify_peer)) curl_easy_setopt (curl, CURLOPT_SSL_VERIFYPEER, 1); else curl_easy_setopt (curl, CURLOPT_SSL_VERIFYPEER, 0); - if ((verify_host == NULL) || (strcmp (verify_host, "true") == 0)) + if ((verify_host == NULL) || IS_TRUE (verify_host)) curl_easy_setopt (curl, CURLOPT_SSL_VERIFYHOST, 2); else curl_easy_setopt (curl, CURLOPT_SSL_VERIFYHOST, 0);