From a910ed104d1e4b4369d8a0191f660d3a5e6e0b5c Mon Sep 17 00:00:00 2001 From: Sunmin Lee Date: Fri, 21 Sep 2018 14:29:15 +0900 Subject: [PATCH] plugin: Enable CURL verification Enable CURL verification options. Change-Id: I5c6c5392267f71c5572ac072886f9fa88553659d Signed-off-by: Sunmin Lee --- src/plugin/http_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugin/http_util.c b/src/plugin/http_util.c index 62ea84e..d2944b3 100644 --- a/src/plugin/http_util.c +++ b/src/plugin/http_util.c @@ -68,12 +68,12 @@ static int http_util_set_ssl_opt(CURL *curl) _E("curl_easy_setopt: CURLOPT_VERBOSE failed!! curl_ret_code[%d]", curl_ret_code); } - curl_ret_code = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE); + curl_ret_code = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 1); if (CURLE_OK != curl_ret_code) { _E("curl_easy_setopt: CURLOPT_SSL_VERIFYPEER failed!! curl_ret_code[%d]", curl_ret_code); } - curl_ret_code = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, FALSE); + curl_ret_code = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 2); if (CURLE_OK != curl_ret_code) { _E("curl_easy_setopt: CURLOPT_SSL_VERIFYHOST failed!! curl_ret_code[%d]", curl_ret_code); } -- 2.34.1