summaryrefslogtreecommitdiff
path: root/common/curl_request.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-07-07 10:18:32 -0700
committerKonstantin Käfer <mail@kkaefer.com>2014-07-07 10:18:32 -0700
commit853c9a58763e990d1a66ee24423413109da05930 (patch)
tree4fc6a2c5479b34cb57aabf65a4137f249fda5dec /common/curl_request.cpp
parent56c55ec149e8e2cfd058f3244ccf0bb99b8d7ec1 (diff)
downloadqtlocation-mapboxgl-853c9a58763e990d1a66ee24423413109da05930.tar.gz
add ca bundle to linux build
Diffstat (limited to 'common/curl_request.cpp')
-rw-r--r--common/curl_request.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/curl_request.cpp b/common/curl_request.cpp
index e5edb5aba9..66750e459e 100644
--- a/common/curl_request.cpp
+++ b/common/curl_request.cpp
@@ -311,6 +311,7 @@ void async_add_cb(uv_async_t * /*async*/) {
((CURLRequest *)req->get())->curl = handle;
curl_easy_setopt(handle, CURLOPT_PRIVATE, req);
+ curl_easy_setopt(handle, CURLOPT_CAINFO, "ca-bundle.crt");
curl_easy_setopt(handle, CURLOPT_URL, (*req)->url.c_str());
curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, curl_write_cb);
curl_easy_setopt(handle, CURLOPT_WRITEDATA, &(*req)->res->body);