Mercurial > trustbridge
changeset 1156:e986d3d4705f
(issue36) Use local8bit for pinned certificate file names.
Curl and Polarssl expect it that way
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Thu, 18 Sep 2014 12:56:31 +0200 |
parents | 5f5880cca5cf |
children | fd7d04bb37cb |
files | ui/sslconnection_curl.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ui/sslconnection_curl.cpp Thu Sep 18 12:55:12 2014 +0200 +++ b/ui/sslconnection_curl.cpp Thu Sep 18 12:56:31 2014 +0200 @@ -49,7 +49,7 @@ mCertFile.close(); if (curl_easy_setopt(mCurl, CURLOPT_CAINFO, - mCertFile.fileName().toUtf8().constData()) != CURLE_OK) { + mCertFile.fileName().toLocal8Bit().constData()) != CURLE_OK) { qDebug() << "Failed to set ca certificate"; return; } @@ -57,7 +57,7 @@ /* If the build fails here maybe you probably forgot to apply the * trustbridge patches to curl */ if (curl_easy_setopt(mCurl, CURLOPT_PEERCERT, - mCertFile.fileName().toUtf8().constData()) != CURLE_OK) { + mCertFile.fileName().toLocal8Bit().constData()) != CURLE_OK) { qDebug() << "Failed set peer certificate."; return; }