X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fsslserver.h;fp=src%2Fcore%2Fsslserver.h;h=61cc22232b735acf8cd2a7fe2e8fe7de2fdaec9e;hp=6ca1b915f531b00159168aa35b3fd1685d7b50ce;hb=c1cf157116de7fc3da96203aa6f03c38c7ebb650;hpb=30b159cb876a9495de42e9a3e70ca050516f0805 diff --git a/src/core/sslserver.h b/src/core/sslserver.h index 6ca1b915..61cc2223 100644 --- a/src/core/sslserver.h +++ b/src/core/sslserver.h @@ -22,24 +22,24 @@ #ifdef HAVE_SSL -#include -#include -#include -#include -#include +# include +# include +# include +# include +# include class SslServer : public QTcpServer { Q_OBJECT public: - SslServer(QObject *parent = nullptr); + SslServer(QObject* parent = nullptr); bool hasPendingConnections() const override { return !_pendingConnections.isEmpty(); } - QTcpSocket *nextPendingConnection() override; + QTcpSocket* nextPendingConnection() override; - const QSslCertificate &certificate() const { return _cert; } - const QSslKey &key() const { return _key; } + const QSslCertificate& certificate() const { return _cert; } + const QSslKey& key() const { return _key; } bool isCertValid() const { return _isCertValid; } /** @@ -55,7 +55,7 @@ public: protected: void incomingConnection(qintptr socketDescriptor) override; - bool setCertificate(const QString &path, const QString &keyPath); + bool setCertificate(const QString& path, const QString& keyPath); private: /** @@ -67,18 +67,17 @@ private: * @return True if certificates loaded successfully, otherwise false. */ bool loadCerts(); - QSslKey loadKey(QFile *keyFile); + QSslKey loadKey(QFile* keyFile); - QLinkedList _pendingConnections; + QLinkedList _pendingConnections; QSslCertificate _cert; QSslKey _key; QList _ca; bool _isCertValid{false}; // Used when reloading certificates later - QString _sslCertPath; /// Path to the certificate file - QString _sslKeyPath; /// Path to the private key file (may be in same file as above) + QString _sslCertPath; /// Path to the certificate file + QString _sslKeyPath; /// Path to the private key file (may be in same file as above) }; - -#endif //HAVE_SSL +#endif // HAVE_SSL