You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by al...@apache.org on 2018/03/14 13:40:21 UTC
nifi-minifi-cpp git commit: MINIFICPP-424: Manually specify CAFile so
users do not need to update the cert bundle on their local machine Set path
and CAfile to NULL to avoid using them
Repository: nifi-minifi-cpp
Updated Branches:
refs/heads/master d1245cf8e -> 531e8a099
MINIFICPP-424: Manually specify CAFile so users do not need to update the cert bundle on their local machine
Set path and CAfile to NULL to avoid using them
This closes #279.
Signed-off-by: Aldrin Piri <al...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/commit/531e8a09
Tree: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/tree/531e8a09
Diff: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/diff/531e8a09
Branch: refs/heads/master
Commit: 531e8a099d51f7b2a66ceaa22fd5ab055eed5c3b
Parents: d1245cf
Author: Marc Parisi <ph...@apache.org>
Authored: Mon Mar 12 16:55:39 2018 -0400
Committer: Aldrin Piri <al...@apache.org>
Committed: Wed Mar 14 09:34:37 2018 -0400
----------------------------------------------------------------------
README.md | 8 ++++----
extensions/http-curl/client/HTTPClient.cpp | 2 ++
2 files changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/531e8a09/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index b6cc04d..deb4411 100644
--- a/README.md
+++ b/README.md
@@ -103,7 +103,7 @@ or greater is recommended.
#### Libraries / Development Headers
* libboost and boost-devel
* 1.48.0 or greater
-* libcurl
+* libcurl-openssl
* librocksdb4.1 and librocksdb-dev
* libuuid and uuid-dev
* openssl
@@ -156,7 +156,7 @@ Finally, it is required to add the `-lrt` compiler flag by using the
#### Libraries
* libuuid
* librocksdb *** IF NOT INSTALLED, WILL BE BUILT FROM THIRD PARTY DIRECTORY ***
-* libcurl
+* libcurl-openssl
* libssl and libcrypto from openssl
* libarchive
* librdkafka
@@ -179,7 +179,6 @@ $ yum install cmake \
gcc gcc-c++ \
bison \
flex \
- libcurl-devel \
rocksdb-devel rocksdb \
libuuid libuuid-devel \
boost-devel \
@@ -201,6 +200,7 @@ $ yum install docker python-virtualenv
$ yum install gpsd-devel
$ # (Optional) for PacketCapture Processor
$ yum install libpcap-devel
+$ #depending on your yum repo you may need to manually build libcurl-openssl if you do not have it.
```
##### Aptitude based Linux Distributions
@@ -210,7 +210,7 @@ $ apt-get install cmake \
gcc g++ \
bison \
flex \
- libcurl-dev \
+ libcurl4-openssl-dev \
librocksdb-dev librocksdb4.1 \
uuid-dev uuid \
libboost-all-dev libssl-dev \
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/531e8a09/extensions/http-curl/client/HTTPClient.cpp
----------------------------------------------------------------------
diff --git a/extensions/http-curl/client/HTTPClient.cpp b/extensions/http-curl/client/HTTPClient.cpp
index 5ea9e95..da0ba2e 100644
--- a/extensions/http-curl/client/HTTPClient.cpp
+++ b/extensions/http-curl/client/HTTPClient.cpp
@@ -334,6 +334,8 @@ void HTTPClient::configure_secure_connection(CURL *http_session) {
logger_->log_debug("Using certificate file %s", ssl_context_service_->getCertificateFile());
curl_easy_setopt(http_session, CURLOPT_SSL_CTX_FUNCTION, &configure_ssl_context);
curl_easy_setopt(http_session, CURLOPT_SSL_CTX_DATA, static_cast<void*>(ssl_context_service_.get()));
+ curl_easy_setopt(http_session, CURLOPT_CAINFO, 0);
+ curl_easy_setopt(http_session, CURLOPT_CAPATH, 0);
}
bool HTTPClient::isSecure(const std::string &url) {