Skip to content

Commit

Permalink
Revert "Clean up C++ client curl configuration (#16064)"
Browse files Browse the repository at this point in the history
This reverts commit 0d4c0b1.
  • Loading branch information
BewareMyPower committed Nov 2, 2022
1 parent e0823e4 commit ed7b875
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pulsar-client-cpp/lib/auth/AuthOauth2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ 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 @@ -310,6 +312,8 @@ 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 ed7b875

Please sign in to comment.