X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fsslserver.h;h=50b548c779dd3d8910ea642cd57cd76f5e6c74f5;hp=6b5e5c8f204aa3e289a79b1b8792ea752cb7628a;hb=694f9bfbf7f1af19108461c7e00d133e55082bce;hpb=ffcc8befd931340321e3aa2029cb5667373fd584 diff --git a/src/core/sslserver.h b/src/core/sslserver.h index 6b5e5c8f..50b548c7 100644 --- a/src/core/sslserver.h +++ b/src/core/sslserver.h @@ -28,30 +28,33 @@ #include #include -class SslServer : public QTcpServer { - Q_OBJECT +class SslServer : public QTcpServer +{ + Q_OBJECT public: - SslServer(QObject *parent = 0); + SslServer(QObject *parent = 0); - virtual inline bool hasPendingConnections() const { return !_pendingConnections.isEmpty(); } - virtual QTcpSocket *nextPendingConnection(); + virtual inline bool hasPendingConnections() const { return !_pendingConnections.isEmpty(); } + virtual QTcpSocket *nextPendingConnection(); - virtual inline const QSslCertificate &certificate() const { return _cert; } - virtual inline const QSslKey &key() const { return _key; } - virtual inline bool certIsValid() const { return _certIsValid; } + virtual inline const QSslCertificate &certificate() const { return _cert; } + virtual inline const QSslKey &key() const { return _key; } + virtual inline bool isCertValid() const { return _isCertValid; } protected: - virtual void incomingConnection(int socketDescriptor); - virtual bool setCertificate(const QString &path); + virtual void incomingConnection(int socketDescriptor); + virtual bool setCertificate(const QString &path); private: - QLinkedList _pendingConnections; - QSslCertificate _cert; - QSslKey _key; - bool _certIsValid; + QLinkedList _pendingConnections; + QSslCertificate _cert; + QSslKey _key; + QList _ca; + bool _isCertValid; }; + #endif //HAVE_SSL #endif //SSLSERVER_H