summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2018-02-15 21:48:18 +0200
committerandreykproductengine <andreykproductengine@lindenlab.com>2018-02-15 21:48:18 +0200
commitb2f61c0e0b27b9c1dae33a85bfc4db6b3ce95dc0 (patch)
tree2975a28083601ee139750fdd29f0f88bf785df5a /indra/newview
parent86935443eb6d97bb8b37090417cb2da57c01db82 (diff)
MAINT-8297 Fixed "Missing CA File" message when running under debugger on windows
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llsechandler_basic.cpp2
-rw-r--r--indra/newview/llviewermedia.cpp2
-rwxr-xr-xindra/newview/viewer_manifest.py9
3 files changed, 11 insertions, 2 deletions
diff --git a/indra/newview/llsechandler_basic.cpp b/indra/newview/llsechandler_basic.cpp
index 814cfde75d..a1dbbb307b 100644
--- a/indra/newview/llsechandler_basic.cpp
+++ b/indra/newview/llsechandler_basic.cpp
@@ -1275,7 +1275,7 @@ void LLSecAPIBasicHandler::init()
// grab the application ca-bundle.crt file that contains the well-known certs shipped
// with the product
- std::string ca_file_path = gDirUtilp->getExpandedFilename(LL_PATH_APP_SETTINGS, "ca-bundle.crt");
+ std::string ca_file_path = gDirUtilp->getExpandedFilename( LL_PATH_EXECUTABLE, "app_settings", "ca-bundle.crt" );
LL_INFOS("SECAPI") << "Loading application certificate store from " << ca_file_path << LL_ENDL;
LLPointer<LLBasicCertificateStore> app_ca_store = new LLBasicCertificateStore(ca_file_path);
diff --git a/indra/newview/llviewermedia.cpp b/indra/newview/llviewermedia.cpp
index 474f3de664..87ee2f4921 100644
--- a/indra/newview/llviewermedia.cpp
+++ b/indra/newview/llviewermedia.cpp
@@ -2029,7 +2029,7 @@ bool LLViewerMediaImpl::initializePlugin(const std::string& media_type)
// the correct way to deal with certs it to load ours from ca-bundle.crt and append them to the ones
// Qt/WebKit loads from your system location.
- std::string ca_path = gDirUtilp->getExpandedFilename( LL_PATH_APP_SETTINGS, "ca-bundle.crt" );
+ std::string ca_path = gDirUtilp->getExpandedFilename( LL_PATH_EXECUTABLE, "app_settings", "ca-bundle.crt" );
media_source->addCertificateFilePath( ca_path );
media_source->proxy_setup(gSavedSettings.getBOOL("BrowserProxyEnabled"), gSavedSettings.getString("BrowserProxyAddress"), gSavedSettings.getS32("BrowserProxyPort"));
diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py
index e823228681..493bfac632 100755
--- a/indra/newview/viewer_manifest.py
+++ b/indra/newview/viewer_manifest.py
@@ -595,6 +595,9 @@ class WindowsManifest(ViewerManifest):
self.path("featuretable.txt")
self.path("ca-bundle.crt")
+ with self.prefix(src=pkgdir,dst="app_settings"):
+ self.path("ca-bundle.crt")
+
# Media plugins - CEF
with self.prefix(src='../media_plugins/cef/%s' % self.args['configuration'], dst="llplugin"):
self.path("media_plugin_cef.dll")
@@ -1052,6 +1055,9 @@ open "%s" --args "$@"
self.path("SecondLife.nib")
self.path("ca-bundle.crt")
+ with self.prefix(src=pkgdir,dst="app_settings"):
+ self.path("ca-bundle.crt")
+
self.path("SecondLife.nib")
# Translations
@@ -1510,6 +1516,9 @@ class LinuxManifest(ViewerManifest):
self.path("featuretable_linux.txt")
self.path("ca-bundle.crt")
+ with self.prefix(src=pkgdir,dst="app_settings"):
+ self.path("ca-bundle.crt")
+
def package_finish(self):
installer_name = self.installer_base_name()