X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fsignalproxy.cpp;h=7c43592c837e6b7daf01b5808eefce71abd2619d;hp=a9172fc2f6e8da5cc74e1f714539d7feffd3a225;hb=1adc00219ba072da57994764d086beed8ffb7bb4;hpb=0324c701d9cc8c656e6188b4e102e19e05c98201;ds=sidebyside diff --git a/src/common/signalproxy.cpp b/src/common/signalproxy.cpp index a9172fc2..7c43592c 100644 --- a/src/common/signalproxy.cpp +++ b/src/common/signalproxy.cpp @@ -32,7 +32,9 @@ #include #include #include +#ifdef HAVE_SSL #include +#endif #include #include #include @@ -214,9 +216,11 @@ void SignalProxy::IODevicePeer::dispatchSignal(const RequestType &requestType, c } bool SignalProxy::IODevicePeer::isSecure() const { +#ifdef HAVE_SSL QSslSocket *sslSocket = qobject_cast(_device); if(sslSocket) return sslSocket->isEncrypted() || sslSocket->localAddress() == QHostAddress::LocalHost || sslSocket->localAddress() == QHostAddress::LocalHostIPv6; +#endif QAbstractSocket *socket = qobject_cast(_device); if(socket) @@ -335,10 +339,12 @@ bool SignalProxy::addPeer(QIODevice* iodev) { connect(iodev, SIGNAL(disconnected()), this, SLOT(removePeerBySender())); connect(iodev, SIGNAL(readyRead()), this, SLOT(dataAvailable())); +#ifdef HAVE_SSL QSslSocket *sslSocket = qobject_cast(iodev); if(sslSocket) { connect(iodev, SIGNAL(encrypted()), this, SLOT(updateSecureState())); } +#endif if(!iodev->parent()) iodev->setParent(this);