Skip to content

Commit

Permalink
Disable setSslConfiguration calls for older Qt version
Browse files Browse the repository at this point in the history
This is only required for client certs, which currently have
no GUI anyway and are experimental.
  • Loading branch information
Daniel Molkentin committed May 6, 2015
1 parent fd684ed commit bceb40e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libsync/account.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,9 @@ QNetworkReply *Account::getRequest(const QString &relPath)
QNetworkReply *Account::getRequest(const QUrl &url)
{
QNetworkRequest request(url);
#if QT_VERSION > QT_VERSION_CHECK(4, 8, 4)
request.setSslConfiguration(this->createSslConfig());
#endif
return _am->get(request);
}

Expand All @@ -333,7 +335,9 @@ QNetworkReply *Account::davRequest(const QByteArray &verb, const QString &relPat
QNetworkReply *Account::davRequest(const QByteArray &verb, const QUrl &url, QNetworkRequest req, QIODevice *data)
{
req.setUrl(url);
#if QT_VERSION > QT_VERSION_CHECK(4, 8, 4)
req.setSslConfiguration(this->createSslConfig());
#endif
return _am->sendCustomRequest(req, verb, data);
}

Expand Down

0 comments on commit bceb40e

Please sign in to comment.