Skip to content

Commit

Permalink
Clean up C++ client curl configuration (#16064)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljmarshall authored and merlimat committed Jun 15, 2022
1 parent 9d68c42 commit 11e342f
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 @@ -179,8 +179,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);

char errorBuffer[CURL_ERROR_SIZE];
curl_easy_setopt(handle, CURLOPT_ERRORBUFFER, errorBuffer);
Expand Down Expand Up @@ -305,8 +303,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);

curl_easy_setopt(handle, CURLOPT_POSTFIELDS, postData.c_str());

Expand Down

0 comments on commit 11e342f

Please sign in to comment.