This is an automated email from the ASF dual-hosted git repository.

mmarshall pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/branch-2.7 by this push:
     new 8eae5b8d572 Clean up C++ client curl configuration (#16064)
8eae5b8d572 is described below

commit 8eae5b8d572861e49c40d456b1f3cbc5d414afe1
Author: Michael Marshall <[email protected]>
AuthorDate: Tue Jun 14 18:09:50 2022 -0500

    Clean up C++ client curl configuration (#16064)
    
    (cherry picked from commit 48c575db6fac571acd70bb6568fb067c1d52bf34)
---
 pulsar-client-cpp/lib/auth/AuthOauth2.cc | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/pulsar-client-cpp/lib/auth/AuthOauth2.cc 
b/pulsar-client-cpp/lib/auth/AuthOauth2.cc
index 33ae450abfa..6cd797e3232 100644
--- a/pulsar-client-cpp/lib/auth/AuthOauth2.cc
+++ b/pulsar-client-cpp/lib/auth/AuthOauth2.cc
@@ -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);
@@ -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;

Reply via email to