From 877240524d3c3b1908281497acfd4795966d5a56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Tue, 29 Sep 2015 01:21:04 +0200 Subject: [PATCH] GH-1202 rebuild SSL certs on start on OSX - part 3 --- application/CertWorkaround.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/application/CertWorkaround.cpp b/application/CertWorkaround.cpp index fcfa34eae..3bd1b16e4 100644 --- a/application/CertWorkaround.cpp +++ b/application/CertWorkaround.cpp @@ -3,6 +3,7 @@ #include #include +#include #include @@ -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 +}