X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fsslserver.h;h=50b548c779dd3d8910ea642cd57cd76f5e6c74f5;hp=306bd8ef82b460e14b5223aad30a11f0e376f550;hb=694f9bfbf7f1af19108461c7e00d133e55082bce;hpb=94899dd5e482868ca01a3de3857e47a46d996553 diff --git a/src/core/sslserver.h b/src/core/sslserver.h index 306bd8ef..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 isCertValid() const { return _isCertValid; } + 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 _isCertValid; + QLinkedList _pendingConnections; + QSslCertificate _cert; + QSslKey _key; + QList _ca; + bool _isCertValid; }; + #endif //HAVE_SSL #endif //SSLSERVER_H