summaryrefslogtreecommitdiffstats
path: root/application/MultiMC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'application/MultiMC.cpp')
-rw-r--r--application/MultiMC.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/application/MultiMC.cpp b/application/MultiMC.cpp
index aae8d154..122890d1 100644
--- a/application/MultiMC.cpp
+++ b/application/MultiMC.cpp
@@ -236,6 +236,8 @@ MultiMC::MultiMC(int &argc, char **argv, bool test_mode) : QApplication(argc, ar
ENV.updateProxySettings(proxyTypeStr, addr, port, user, pass);
}
+ initSSL();
+
m_translationChecker->downloadTranslations();
//FIXME: what to do with these?
@@ -271,6 +273,17 @@ MultiMC::~MultiMC()
}
}
+void MultiMC::initSSL()
+{
+#ifdef Q_OS_MAC
+ Q_INIT_RESOURCE(certs);
+ QFile equifaxFile(":/certs/Equifax_Secure_Certificate_Authority.pem");
+ equifaxFile.open(QIODevice::ReadOnly);
+ QSslCertificate equifaxCert(equifaxFile.readAll(), QSsl::Pem);
+ QSslSocket::addDefaultCaCertificate(equifaxCert);
+#endif
+}
+
void MultiMC::initTranslations()
{
QLocale locale(m_settings->get("Language").toString());