diff options
author | Drake Arconis <drake@alchemyviewer.org> | 2016-02-25 15:02:32 -0500 |
---|---|---|
committer | Drake Arconis <drake@alchemyviewer.org> | 2016-02-25 15:02:32 -0500 |
commit | d253f485380a108e2ad1e9409c7ec3e00eb5760d (patch) | |
tree | 8dea653afb9ba3dd3d6b310169c5f3c5d3fa1698 /indra/viewer_components/updater | |
parent | e307a46bdd6c42828e478126aac7a220c37e33b7 (diff) |
Add SSL support to update downloader to enable possibility of secure downloads
Diffstat (limited to 'indra/viewer_components/updater')
-rwxr-xr-x | indra/viewer_components/updater/llupdatedownloader.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/viewer_components/updater/llupdatedownloader.cpp b/indra/viewer_components/updater/llupdatedownloader.cpp index d44a6c8d7c..382689afa0 100755 --- a/indra/viewer_components/updater/llupdatedownloader.cpp +++ b/indra/viewer_components/updater/llupdatedownloader.cpp @@ -486,6 +486,9 @@ void LLUpdateDownloader::Implementation::initializeCurlGet(std::string const & u // if it's a required update set the bandwidth limit to 0 (unlimited) curl_off_t limit = mDownloadData["required"].asBoolean() ? 0 : mBandwidthLimit; throwOnCurlError(curl_easy_setopt(mCurl.get(), CURLOPT_MAX_RECV_SPEED_LARGE, limit)); + throwOnCurlError(curl_easy_setopt(mCurl.get(), CURLOPT_CAINFO, gDirUtilp->getCAFile().c_str())); + throwOnCurlError(curl_easy_setopt(mCurl.get(), CURLOPT_SSL_VERIFYHOST, 2)); + throwOnCurlError(curl_easy_setopt(mCurl.get(), CURLOPT_SSL_VERIFYPEER, 1)); mDownloadPercent = 0; } |