Making Quassel Core compile without SSL support
[quassel.git] / src / core / sslserver.h
index 3dd5bd9..fdbecbf 100644 (file)
 #ifndef SSLSERVER_H
 #define SSLSERVER_H
 
+#ifndef QT_NO_OPENSSL
+#  include <QSslCertificate>
+#  include <QSslKey>
 #include <QTcpServer>
 #include <QLinkedList>
-#include <QSslCertificate>
-#include <QSslKey>
+#endif
+
+#ifndef QT_NO_OPENSSL
 
 class SslServer : public QTcpServer {
   Q_OBJECT
@@ -49,4 +53,6 @@ private:
   bool _certIsValid;
 };
 
+#endif //QT_NO_OPENSSL
+
 #endif //SSLSERVER_H