Q_OBJECT
public:
- SslServer(QObject *parent = 0);
+ SslServer(QObject *parent = nullptr);
bool hasPendingConnections() const override { return !_pendingConnections.isEmpty(); }
QTcpSocket *nextPendingConnection() override;
bool reloadCerts();
protected:
-#if QT_VERSION >= 0x050000
void incomingConnection(qintptr socketDescriptor) override;
-#else
- void incomingConnection(int socketDescriptor) override;
-#endif
bool setCertificate(const QString &path, const QString &keyPath);
QSslCertificate _cert;
QSslKey _key;
QList<QSslCertificate> _ca;
- bool _isCertValid;
+ bool _isCertValid{false};
// Used when reloading certificates later
QString _sslCertPath; /// Path to the certificate file