diff ui/sslconnection_curl.cpp @ 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 508c96e72f62
children 0eb723242536
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;
     }

http://wald.intevation.org/projects/trustbridge/