Skip to content

Commit

Permalink
Clean up C++ client curl configuration (#16064)
Browse files Browse the repository at this point in the history
(cherry picked from commit 48c575d)
  • Loading branch information
michaeljmarshall committed Aug 25, 2022
1 parent 43a8436 commit 8eae5b8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pulsar-client-cpp/lib/auth/AuthOauth2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,6 @@ void ClientCredentialFlow::initialize() {
curl_easy_setopt(handle, CURLOPT_FORBID_REUSE, 1L);

curl_easy_setopt(handle, CURLOPT_FOLLOWLOCATION, 1L);
curl_easy_setopt(handle, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(handle, CURLOPT_SSL_VERIFYHOST, 0L);

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

curl_easy_setopt(handle, CURLOPT_FOLLOWLOCATION, 1L);
curl_easy_setopt(handle, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(handle, CURLOPT_SSL_VERIFYHOST, 0L);

// fill in the request data
boost::property_tree::ptree pt;
Expand Down

0 comments on commit 8eae5b8

Please sign in to comment.