summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-09-29 01:21:04 +0200
committerPetr Mrázek <peterix@gmail.com>2015-09-29 01:21:04 +0200
commit877240524d3c3b1908281497acfd4795966d5a56 (patch)
tree5c4bfabbf8e46b28e25aad2f4719f9e8f6f3625f
parentb7ff8a4c1c8ae8381d018705ccf384fb8cc9d619 (diff)
downloadMultiMC-877240524d3c3b1908281497acfd4795966d5a56.tar
MultiMC-877240524d3c3b1908281497acfd4795966d5a56.tar.gz
MultiMC-877240524d3c3b1908281497acfd4795966d5a56.tar.lz
MultiMC-877240524d3c3b1908281497acfd4795966d5a56.tar.xz
MultiMC-877240524d3c3b1908281497acfd4795966d5a56.zip
GH-1202 rebuild SSL certs on start on OSX - part 3
-rw-r--r--application/CertWorkaround.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/application/CertWorkaround.cpp b/application/CertWorkaround.cpp
index fcfa34ea..3bd1b16e 100644
--- a/application/CertWorkaround.cpp
+++ b/application/CertWorkaround.cpp
@@ -3,6 +3,7 @@
#include <QByteArray>
#include <QSslSocket>
+#include <QDebug>
#include <Security/Security.h>
@@ -75,8 +76,7 @@ LoadCertificatesFromKeyChain(const std::string &keyChainPath = std::string())
qDebug() << "COMMON NAME: "
<< qtCert.issuerInfo(QSslCertificate::CommonName).join('\n')
<< " ORG NAME: "
- << qtCert.issuerInfo(QSslCertificate::Organization).join('\n')
- << std::endl;
+ << qtCert.issuerInfo(QSslCertificate::Organization).join('\n');
qtCerts << qtCert;
}
@@ -112,10 +112,9 @@ void RebuildQtCertificates()
qDebug() << "COMMON NAME: "
<< qtCert.issuerInfo(QSslCertificate::CommonName).join('\n')
<< " ORG NAME: "
- << qtCert.issuerInfo(QSslCertificate::Organization).join('\n')
- << std::endl;
+ << qtCert.issuerInfo(QSslCertificate::Organization).join('\n');
QSslSocket::addDefaultCaCertificate(qtCert);
}
}
-} \ No newline at end of file
+}