You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by xy...@apache.org on 2022/11/02 09:38:25 UTC
[pulsar] branch branch-2.11 updated: Revert "Clean up C++ client curl configuration (#16064)"
This is an automated email from the ASF dual-hosted git repository.
xyz pushed a commit to branch branch-2.11
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-2.11 by this push:
new a1f4fef4e30 Revert "Clean up C++ client curl configuration (#16064)"
a1f4fef4e30 is described below
commit a1f4fef4e30e1e93beef51e43681cd4be292c709
Author: Yunze Xu <xy...@163.com>
AuthorDate: Wed Nov 2 17:38:09 2022 +0800
Revert "Clean up C++ client curl configuration (#16064)"
This reverts commit 48c575db6fac571acd70bb6568fb067c1d52bf34.
---
pulsar-client-cpp/lib/auth/AuthOauth2.cc | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/pulsar-client-cpp/lib/auth/AuthOauth2.cc b/pulsar-client-cpp/lib/auth/AuthOauth2.cc
index 2fce8047a3a..c7f944da75b 100644
--- a/pulsar-client-cpp/lib/auth/AuthOauth2.cc
+++ b/pulsar-client-cpp/lib/auth/AuthOauth2.cc
@@ -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);
@@ -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());