1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-21 16:31:58 +02:00

Unbreak QXT with SecureTransport on OSX.

This commit is contained in:
Christian Muehlhaeuser 2015-10-09 17:36:30 +02:00
parent 282b876332
commit 1c99e2abbc
6 changed files with 8 additions and 8 deletions

View File

@ -55,7 +55,7 @@
* QxtSslServer is only available if Qt was compiled with OpenSSL support.
*/
#ifndef QT_NO_OPENSSL
#if defined(QT_SECURETRANSPORT) || defined(QT_OPENSSL)
#include <QSslKey>
class QxtSslServerPrivate : public QxtPrivate<QxtSslServer>

View File

@ -35,7 +35,7 @@
#include "qxtglobal.h"
#include <QTcpServer>
#ifndef QT_NO_OPENSSL
#if defined(QT_SECURETRANSPORT) || defined(QT_OPENSSL)
#include <QSslSocket>
class QxtSslServerPrivate;

View File

@ -95,7 +95,7 @@ private:
QXT_DECLARE_PRIVATE(QxtHttpServerConnector)
};
#ifndef QT_NO_OPENSSL
#if defined(QT_SECURETRANSPORT) || defined(QT_OPENSSL)
class QXT_WEB_EXPORT QxtHttpsServerConnector : public QxtHttpServerConnector
{
Q_OBJECT

View File

@ -191,7 +191,7 @@ void QxtHttpServerConnector::writeHeaders(QIODevice* device, const QHttpResponse
device->write(header.toString().toUtf8());
}
#ifndef QT_NO_OPENSSL
#if defined(QT_SECURETRANSPORT) || defined(QT_OPENSSL)
/*!
* Creates a QxtHttpsServerConnector with the given \a parent.
*/

View File

@ -68,7 +68,7 @@ posting events. It is reentrant for all other functionality.
#include <QThread>
#include <qxtmetaobject.h>
#include <QTcpSocket>
#ifndef QT_NO_OPENSSL
#if defined(QT_SECURETRANSPORT) || defined(QT_OPENSSL)
#include <QSslSocket>
#endif
@ -437,7 +437,7 @@ void QxtHttpSessionManager::incomingRequest(quint32 requestID, const QHttpReques
if (socket)
{
event->remoteAddress = socket->peerAddress();
#ifndef QT_NO_OPENSSL
#if defined(QT_SECURETRANSPORT) || defined(QT_OPENSSL)
QSslSocket* sslSocket = qobject_cast<QSslSocket*>(socket);
if(sslSocket) {
event->isSecure = true;

View File

@ -41,7 +41,7 @@
#include <QMultiHash>
#include <QDateTime>
#include <QHostAddress>
#ifndef QT_NO_OPENSSL
#if defined(QT_SECURETRANSPORT) || defined(QT_OPENSSL)
#include <QSslCertificate>
#endif
QT_FORWARD_DECLARE_CLASS(QIODevice)
@ -89,7 +89,7 @@ public:
QString method;
QHostAddress remoteAddress;
bool isSecure;
#ifndef QT_NO_OPENSSL
#if defined(QT_SECURETRANSPORT) || defined(QT_OPENSSL)
QSslCertificate clientCertificate;
#endif