Skip to content
Snippets Groups Projects
Commit b2f61c0e authored by andreykproductengine's avatar andreykproductengine
Browse files

MAINT-8297 Fixed "Missing CA File" message when running under debugger on windows

parent 86935443
No related branches found
No related tags found
No related merge requests found
...@@ -233,7 +233,7 @@ void LLDir_Win32::initAppDirs(const std::string &app_name, ...@@ -233,7 +233,7 @@ void LLDir_Win32::initAppDirs(const std::string &app_name,
LL_WARNS() << "Couldn't create LL_PATH_CACHE dir " << getExpandedFilename(LL_PATH_CACHE,"") << LL_ENDL; LL_WARNS() << "Couldn't create LL_PATH_CACHE dir " << getExpandedFilename(LL_PATH_CACHE,"") << LL_ENDL;
} }
mCAFile = getExpandedFilename(LL_PATH_APP_SETTINGS, "ca-bundle.crt"); mCAFile = gDirUtilp->getExpandedFilename( LL_PATH_EXECUTABLE, "app_settings", "ca-bundle.crt" );
} }
U32 LLDir_Win32::countFilesInDir(const std::string &dirname, const std::string &mask) U32 LLDir_Win32::countFilesInDir(const std::string &dirname, const std::string &mask)
......
...@@ -1275,7 +1275,7 @@ void LLSecAPIBasicHandler::init() ...@@ -1275,7 +1275,7 @@ void LLSecAPIBasicHandler::init()
// grab the application ca-bundle.crt file that contains the well-known certs shipped // grab the application ca-bundle.crt file that contains the well-known certs shipped
// with the product // 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; LL_INFOS("SECAPI") << "Loading application certificate store from " << ca_file_path << LL_ENDL;
LLPointer<LLBasicCertificateStore> app_ca_store = new LLBasicCertificateStore(ca_file_path); LLPointer<LLBasicCertificateStore> app_ca_store = new LLBasicCertificateStore(ca_file_path);
......
...@@ -2029,7 +2029,7 @@ bool LLViewerMediaImpl::initializePlugin(const std::string& media_type) ...@@ -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 // 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. // 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->addCertificateFilePath( ca_path );
media_source->proxy_setup(gSavedSettings.getBOOL("BrowserProxyEnabled"), gSavedSettings.getString("BrowserProxyAddress"), gSavedSettings.getS32("BrowserProxyPort")); media_source->proxy_setup(gSavedSettings.getBOOL("BrowserProxyEnabled"), gSavedSettings.getString("BrowserProxyAddress"), gSavedSettings.getS32("BrowserProxyPort"));
......
...@@ -595,6 +595,9 @@ def construct(self): ...@@ -595,6 +595,9 @@ def construct(self):
self.path("featuretable.txt") self.path("featuretable.txt")
self.path("ca-bundle.crt") self.path("ca-bundle.crt")
with self.prefix(src=pkgdir,dst="app_settings"):
self.path("ca-bundle.crt")
# Media plugins - CEF # Media plugins - CEF
with self.prefix(src='../media_plugins/cef/%s' % self.args['configuration'], dst="llplugin"): with self.prefix(src='../media_plugins/cef/%s' % self.args['configuration'], dst="llplugin"):
self.path("media_plugin_cef.dll") self.path("media_plugin_cef.dll")
...@@ -1052,6 +1055,9 @@ def construct(self): ...@@ -1052,6 +1055,9 @@ def construct(self):
self.path("SecondLife.nib") self.path("SecondLife.nib")
self.path("ca-bundle.crt") self.path("ca-bundle.crt")
with self.prefix(src=pkgdir,dst="app_settings"):
self.path("ca-bundle.crt")
self.path("SecondLife.nib") self.path("SecondLife.nib")
# Translations # Translations
...@@ -1510,6 +1516,9 @@ def construct(self): ...@@ -1510,6 +1516,9 @@ def construct(self):
self.path("featuretable_linux.txt") self.path("featuretable_linux.txt")
self.path("ca-bundle.crt") self.path("ca-bundle.crt")
with self.prefix(src=pkgdir,dst="app_settings"):
self.path("ca-bundle.crt")
def package_finish(self): def package_finish(self):
installer_name = self.installer_base_name() installer_name = self.installer_base_name()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment