[PATCH 4 of 7] (issue36) Use local8bit for pinned certificate file names
Wald Commits
scm-commit at wald.intevation.org
Thu Sep 18 15:47:18 CEST 2014
# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1411037791 -7200
# Node ID e986d3d4705f25ba75a74e9b99ecb43f8d1d5582
# Parent 5f5880cca5cf64eaa4b36fd8a82108efeb802fa4
(issue36) Use local8bit for pinned certificate file names.
Curl and Polarssl expect it that way
diff -r 5f5880cca5cf -r e986d3d4705f ui/sslconnection_curl.cpp
--- 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;
}
More information about the Trustbridge-commits
mailing list