Skip to content

Commit 8eae5b8

Browse files
Clean up C++ client curl configuration (#16064)
(cherry picked from commit 48c575d)
1 parent 43a8436 commit 8eae5b8

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pulsar-client-cpp/lib/auth/AuthOauth2.cc

-4
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,6 @@ void ClientCredentialFlow::initialize() {
193193
curl_easy_setopt(handle, CURLOPT_FORBID_REUSE, 1L);
194194

195195
curl_easy_setopt(handle, CURLOPT_FOLLOWLOCATION, 1L);
196-
curl_easy_setopt(handle, CURLOPT_SSL_VERIFYPEER, 0L);
197-
curl_easy_setopt(handle, CURLOPT_SSL_VERIFYHOST, 0L);
198196

199197
// Make get call to server
200198
res = curl_easy_perform(handle);
@@ -260,8 +258,6 @@ Oauth2TokenResultPtr ClientCredentialFlow::authenticate() {
260258
curl_easy_setopt(handle, CURLOPT_FORBID_REUSE, 1L);
261259

262260
curl_easy_setopt(handle, CURLOPT_FOLLOWLOCATION, 1L);
263-
curl_easy_setopt(handle, CURLOPT_SSL_VERIFYPEER, 0L);
264-
curl_easy_setopt(handle, CURLOPT_SSL_VERIFYHOST, 0L);
265261

266262
// fill in the request data
267263
boost::property_tree::ptree pt;

0 commit comments

Comments
 (0)