From d0b31da4b53e6aa4630dec9eef9435246889d6c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Tue, 19 May 2015 22:28:51 +0200 Subject: GH-960 possible fix for missing OSX ca certs --- application/MultiMC.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'application/MultiMC.cpp') 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()); -- cgit v1.2.3