OAUTH2_LOG_E("fread() Fail(%d)", ret);
return 0;
}
- smack_label[ret] = '\0';
snprintf(uid, sizeof(uid), "%d", getuid());
ret = cynara_check(cynara_h, smack_label, "", uid, INTERNET_PRIVILEGE);
OAUTH2_LOG_I("__curl_post_request post body=[%s]", post_body);
curl_easy_setopt(mgr_handle->curl_handle, CURLOPT_URL, url);
- curl_easy_setopt(mgr_handle->curl_handle, CURLOPT_SSL_VERIFYPEER, 1L);
- curl_easy_setopt(mgr_handle->curl_handle, CURLOPT_SSL_CTX_FUNCTION, tpkp_curl_ssl_ctx_callback);
- curl_easy_setopt(mgr_handle->curl_handle, CURLOPT_POSTFIELDS,
- post_body);
+ curl_easy_setopt(mgr_handle->curl_handle, CURLOPT_SSL_VERIFYPEER, FALSE);/*1L);*/
+ /*curl_easy_setopt(mgr_handle->curl_handle, CURLOPT_SSL_CTX_FUNCTION, tpkp_curl_ssl_ctx_callback);*/
+ curl_easy_setopt(mgr_handle->curl_handle, CURLOPT_POSTFIELDS, post_body);
char *data = NULL;
- curl_easy_setopt(mgr_handle->curl_handle, CURLOPT_WRITEDATA, data);
- curl_easy_setopt(mgr_handle->curl_handle, CURLOPT_WRITEFUNCTION,
- __store_curl_response);
- curl_easy_setopt(mgr_handle->curl_handle, CURLOPT_SSL_VERIFYPEER,
- FALSE);
+ curl_easy_setopt(mgr_handle->curl_handle, CURLOPT_WRITEDATA, &data);
+ curl_easy_setopt(mgr_handle->curl_handle, CURLOPT_WRITEFUNCTION, __store_curl_response);
+ /*curl_easy_setopt(mgr_handle->curl_handle, CURLOPT_SSL_VERIFYPEER, FALSE);*/
*curl_err = curl_easy_perform(mgr_handle->curl_handle);
OAUTH2_LOG_I("Response id curl code=[%d]", *curl_err);