From: Sunmin Lee Date: Fri, 21 Sep 2018 05:29:15 +0000 (+0900) Subject: plugin: Enable CURL verification X-Git-Tag: submit/tizen/20190221.045132~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a910ed104d1e4b4369d8a0191f660d3a5e6e0b5c;p=platform%2Fcore%2Fsystem%2Fupdate-control.git plugin: Enable CURL verification Enable CURL verification options. Change-Id: I5c6c5392267f71c5572ac072886f9fa88553659d Signed-off-by: Sunmin Lee --- 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); }