plugin: Enable CURL verification 69/190069/3
authorSunmin Lee <sunm.lee@samsung.com>
Fri, 21 Sep 2018 05:29:15 +0000 (14:29 +0900)
committerSunmin Lee <sunm.lee@samsung.com>
Thu, 27 Sep 2018 05:07:51 +0000 (14:07 +0900)
Enable CURL verification options.

Change-Id: I5c6c5392267f71c5572ac072886f9fa88553659d
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
src/plugin/http_util.c

index 62ea84ec25d598dfdfe052a4a436c744e2d1beff..d2944b3d41d099bbb57def323fa74d1d10070894 100644 (file)
@@ -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);
        }