diff --git a/extensions/standard-processors/processors/InvokeHTTP.cpp b/extensions/standard-processors/processors/InvokeHTTP.cpp index 6049630ac8..36e3614d47 100644 --- a/extensions/standard-processors/processors/InvokeHTTP.cpp +++ b/extensions/standard-processors/processors/InvokeHTTP.cpp @@ -127,7 +127,6 @@ std::unique_ptr InvokeHTTP::createHTTPClientFromMember setupClientTimeouts(*client, connect_timeout_, read_timeout_); client->setHTTPProxy(proxy_); client->setFollowRedirects(follow_redirects_); - client->setPeerVerification(true); if (send_message_body_ && content_type_) client->setContentType(*content_type_); setupClientTransferEncoding(*client, use_chunked_encoding_); diff --git a/libminifi/include/http/BaseHTTPClient.h b/libminifi/include/http/BaseHTTPClient.h index 005cf27a0e..48e01eee6c 100644 --- a/libminifi/include/http/BaseHTTPClient.h +++ b/libminifi/include/http/BaseHTTPClient.h @@ -216,9 +216,6 @@ class BaseHTTPClient { virtual void set_request_method(HttpRequestMethod method) = 0; - virtual void setPeerVerification(bool peer_verification) = 0; - virtual void setHostVerification(bool host_verification) = 0; - virtual void setHTTPProxy(const HTTPProxy &proxy) = 0; virtual void setBasicAuth(const std::string& username, const std::string& password) = 0; diff --git a/libminifi/include/http/HTTPClient.h b/libminifi/include/http/HTTPClient.h index 97df8c57cd..d34e499fe2 100644 --- a/libminifi/include/http/HTTPClient.h +++ b/libminifi/include/http/HTTPClient.h @@ -122,9 +122,6 @@ class HTTPClient : public BaseHTTPClient, public core::Connectable { void set_request_method(http::HttpRequestMethod method) override; - void setPeerVerification(bool peer_verification) override; - void setHostVerification(bool host_verification) override; - void setBasicAuth(const std::string& username, const std::string& password) override; void clearBasicAuth() override; diff --git a/libminifi/src/http/HTTPClient.cpp b/libminifi/src/http/HTTPClient.cpp index df478a3ebd..cb5baa2fea 100644 --- a/libminifi/src/http/HTTPClient.cpp +++ b/libminifi/src/http/HTTPClient.cpp @@ -121,21 +121,6 @@ void HTTPClient::initialize(http::HttpRequestMethod method, std::string url, std if (isSecure(url_)) configure_secure_connection(); } - -void HTTPClient::setPeerVerification(bool peer_verification) { - if (peer_verification) { - logger_->log_debug("Enabling peer verification"); - } else { - logger_->log_warn("Disabling peer verification: the authenticity of https servers will not be verified!"); - } - curl_easy_setopt(http_session_.get(), CURLOPT_SSL_VERIFYPEER, peer_verification); -} - -void HTTPClient::setHostVerification(bool host_verification) { - logger_->log_debug("{} host verification", host_verification ? "Enabling" : "Disabling"); - curl_easy_setopt(http_session_.get(), CURLOPT_SSL_VERIFYHOST, host_verification); -} - void HTTPClient::setBasicAuth(const std::string& username, const std::string& password) { curl_easy_setopt(http_session_.get(), CURLOPT_USERNAME, username.c_str()); curl_easy_setopt(http_session_.get(), CURLOPT_PASSWORD, password.c_str());