Turn on verify peer option on curl for pinning 48/54348/1 accepted/tizen/mobile/20151215.055258 accepted/tizen/tv/20151215.055315 accepted/tizen/wearable/20151215.055345 submit/tizen/20151215.042856
authorKyungwook Tak <k.tak@samsung.com>
Tue, 15 Dec 2015 04:24:11 +0000 (13:24 +0900)
committerKyungwook Tak <k.tak@samsung.com>
Tue, 15 Dec 2015 04:24:11 +0000 (13:24 +0900)
Change-Id: Ibae9eb9866d6259fe1f40868bde177f09e6582f8
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
email-core/email-core-account.c

index 0b5838b..c523c12 100755 (executable)
@@ -1449,7 +1449,7 @@ static int emcore_get_xoauth2_access_token(char *input_refresh_token, char **out
        curl_easy_setopt(curl, CURLOPT_URL, GOOGLE_PIM_SYNC_GET_TOKEN_URL);
        curl_easy_setopt(curl, CURLOPT_POST, 1);
        curl_easy_setopt(curl, CURLOPT_POSTFIELDS, buf);
-       curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
+       curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 1L);
        curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, CALCURL_TIMEOUT);
        curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
        curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0);