summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorLeyla Farazha <leyla@lindenlab.com>2011-03-04 16:02:28 -0800
committerLeyla Farazha <leyla@lindenlab.com>2011-03-04 16:02:28 -0800
commitb7433597185028c360bcab369b2efef086facda0 (patch)
treeaef6ddc58f52ae8402428c1fe75f21afe6bdf4ff /indra/newview
parentcd01bdfffdac92ae7b6098668e187d22b7d823f0 (diff)
parent0aaa829b477ed5953bd6783f38112c35154bacc9 (diff)
Merge
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llviewermedia.cpp21
1 files changed, 19 insertions, 2 deletions
diff --git a/indra/newview/llviewermedia.cpp b/indra/newview/llviewermedia.cpp
index 82c5b8240e..71ce8ed9d6 100644
--- a/indra/newview/llviewermedia.cpp
+++ b/indra/newview/llviewermedia.cpp
@@ -60,6 +60,7 @@
#include "llkeyboard.h"
#include "llmutelist.h"
#include "llpanelprofile.h"
+#include "llappviewer.h"
//#include "llfirstuse.h"
#include "llwindow.h"
@@ -1884,10 +1885,26 @@ bool LLViewerMediaImpl::initializePlugin(const std::string& media_type)
media_source->ignore_ssl_cert_errors(true);
}
- // the correct way to deal with certs it to load ours from CA.pem and append them to the ones
- // Qt/WebKit loads from your system location.
+
+ // HACK: This is absurd but it'll do for now until we can
+ // find out what's wrong with Qt SSL certs
+#if (defined(LL_WINDOWS) )
+ // Always do this for Windows platforms
std::string ca_path = gDirUtilp->getExpandedFilename( LL_PATH_APP_SETTINGS, "CA.pem" );
media_source->addCertificateFilePath( ca_path );
+#elif (defined(LL_DARWIN) )
+ // get Mac OS X version numbers
+ S32 os_major_version = LLAppViewer::instance()->getOSInfo().mMajorVer;
+ S32 os_minor_version = LLAppViewer::instance()->getOSInfo().mMinorVer;
+ llinfos << "OS version is " << os_major_version << " --- " << os_minor_version << llendl;
+
+ // Only do this for Leopard (10.5.x) - not Snow Leopard (10.6.x)
+ if ( os_major_version == 5 )
+ {
+ std::string ca_path = gDirUtilp->getExpandedFilename( LL_PATH_APP_SETTINGS, "CA.pem" );
+ media_source->addCertificateFilePath( ca_path );
+ }
+#endif
media_source->proxy_setup(gSavedSettings.getBOOL("BrowserProxyEnabled"), gSavedSettings.getString("BrowserProxyAddress"), gSavedSettings.getS32("BrowserProxyPort"));