From d4d4159888c64de0818bd667713c854aa0accbe0 Mon Sep 17 00:00:00 2001 From: Sangwan Kwon Date: Tue, 28 Apr 2020 15:52:51 +0900 Subject: [PATCH] Restore CURLOPT_SSL_VERIFYPEER Change-Id: If47aa0e40d94f04a3cfd2b29bfdd0251c7f8919e Signed-off-by: Sangwan Kwon --- src/oauth2_manager.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/oauth2_manager.c b/src/oauth2_manager.c index 35c2052..9b5b57d 100755 --- a/src/oauth2_manager.c +++ b/src/oauth2_manager.c @@ -619,6 +619,7 @@ __curl_post_request(oauth2_manager_s *mgr_handle, const char *url, if (post_body) OAUTH2_LOG_I("__curl_post_request post body=[%s]", post_body); + curl_easy_setopt(mgr_handle->curl_handle, CURLOPT_SSL_VERIFYPEER, FALSE); curl_easy_setopt(mgr_handle->curl_handle, CURLOPT_URL, url); curl_easy_setopt(mgr_handle->curl_handle, CURLOPT_POSTFIELDS, post_body); char *data = NULL; -- 2.7.4