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

xyz 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 1988aac2057 Revert "Revert "Clean up C++ client curl configuration 
(#16064)""
1988aac2057 is described below

commit 1988aac20576686b13e8109de6cad3807e5a10f5
Author: Yunze Xu <[email protected]>
AuthorDate: Wed Nov 2 22:54:18 2022 +0800

    Revert "Revert "Clean up C++ client curl configuration (#16064)""
    
    This reverts commit 093d8eebb69eb7c90274c07806981daed113603b.
---
 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