summaryrefslogtreecommitdiff
path: root/indra/newview/llappcorehttp.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2016-07-28 13:21:04 -0400
committerOz Linden <oz@lindenlab.com>2016-07-28 13:21:04 -0400
commit2be32eedb57a9ec33b2ac476776c88d5c0169a31 (patch)
tree731b4eedc02f305d296d1abe80beacd673a34edc /indra/newview/llappcorehttp.cpp
parentba93f428e363eaeba99b8567724e675a2f4a867f (diff)
fail in initialization if there is no CA bundle (instead of waiting for an opaque connection failure)
Diffstat (limited to 'indra/newview/llappcorehttp.cpp')
-rw-r--r--indra/newview/llappcorehttp.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/indra/newview/llappcorehttp.cpp b/indra/newview/llappcorehttp.cpp
index 49291ea564..d57f9c6e18 100644
--- a/indra/newview/llappcorehttp.cpp
+++ b/indra/newview/llappcorehttp.cpp
@@ -154,9 +154,19 @@ void LLAppCoreHttp::init()
}
// Point to our certs or SSH/https: will fail on connect
- status = LLCore::HttpRequest::setStaticPolicyOption(LLCore::HttpRequest::PO_CA_FILE,
- LLCore::HttpRequest::GLOBAL_POLICY_ID,
- gDirUtilp->getCAFile(), NULL);
+ std::string ca_file = gDirUtilp->getCAFile();
+ if ( LLFile::isfile(ca_file) )
+ {
+ LL_DEBUGS("Init") << "Setting CA File to " << ca_file << LL_ENDL;
+ status = LLCore::HttpRequest::setStaticPolicyOption(LLCore::HttpRequest::PO_CA_FILE,
+ LLCore::HttpRequest::GLOBAL_POLICY_ID,
+ ca_file, NULL);
+ }
+ else
+ {
+ LL_ERRS("Init") << "Missing CA File; should be at " << ca_file << LL_ENDL;
+ }
+
if (! status)
{
LL_ERRS("Init") << "Failed to set CA File for HTTP services. Reason: " << status.toString()